Add meta and title tags for seo (#46)
This commit is contained in:
@@ -12,7 +12,7 @@ pygmentsStyle = "monokai"
|
|||||||
|
|
||||||
[params]
|
[params]
|
||||||
footer = "The Marauders"
|
footer = "The Marauders"
|
||||||
description = "Sky above, sand below & peace within"
|
description = "Sky above, sand below and peace within"
|
||||||
avatarURL = "/images/avatar.webp"
|
avatarURL = "/images/avatar.webp"
|
||||||
avatarSize = "size-m"
|
avatarSize = "size-m"
|
||||||
customHeadHTML = ""
|
customHeadHTML = ""
|
||||||
|
|||||||
@@ -8,6 +8,13 @@
|
|||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
<!-- SEO titles & descriptions -->
|
||||||
|
<title>{{ .Title | default .Site.Title }}</title>
|
||||||
|
<meta name="description" content="{{ .Description | default .Site.Params.Description }}">
|
||||||
|
|
||||||
|
<!-- SEO canonicals: helps Google understand your site better when using marketing campaign tagging etc -->
|
||||||
|
<link rel="canonical" href="{{ .Permalink }}" />
|
||||||
|
|
||||||
<link rel="stylesheet" type="text/css" href="/css/normalize.min.css" media="print" onload="this.media='all'">
|
<link rel="stylesheet" type="text/css" href="/css/normalize.min.css" media="print" onload="this.media='all'">
|
||||||
<link rel="stylesheet" type="text/css" href="/css/main.css">
|
<link rel="stylesheet" type="text/css" href="/css/main.css">
|
||||||
<link disabled id="dark-theme" rel="stylesheet" href="/css/dark.css">
|
<link disabled id="dark-theme" rel="stylesheet" href="/css/dark.css">
|
||||||
@@ -19,8 +26,4 @@
|
|||||||
{{ if .Site.Params.CustomHeadHTML }}
|
{{ if .Site.Params.CustomHeadHTML }}
|
||||||
{{ .Site.Params.CustomHeadHTML | safeHTML }}
|
{{ .Site.Params.CustomHeadHTML | safeHTML }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ $title := print .Site.Title " | " .Title }}
|
|
||||||
{{ if .IsHome }}{{ $title = .Site.Title }}{{ end }}
|
|
||||||
<title>{{ $title }}</title>
|
|
||||||
</head>
|
</head>
|
||||||
|
|||||||
Reference in New Issue
Block a user