Add meta and title tags for seo (#46)

This commit is contained in:
Avijit Gupta
2021-08-13 13:28:49 +02:00
committed by GitHub
parent ad8188cfd2
commit 673eb8633b
2 changed files with 8 additions and 5 deletions

View File

@@ -12,7 +12,7 @@ pygmentsStyle = "monokai"
[params]
footer = "The Marauders"
description = "Sky above, sand below & peace within"
description = "Sky above, sand below and peace within"
avatarURL = "/images/avatar.webp"
avatarSize = "size-m"
customHeadHTML = ""

View File

@@ -8,6 +8,13 @@
}
</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/main.css">
<link disabled id="dark-theme" rel="stylesheet" href="/css/dark.css">
@@ -19,8 +26,4 @@
{{ if .Site.Params.CustomHeadHTML }}
{{ .Site.Params.CustomHeadHTML | safeHTML }}
{{ end }}
{{ $title := print .Site.Title " | " .Title }}
{{ if .IsHome }}{{ $title = .Site.Title }}{{ end }}
<title>{{ $title }}</title>
</head>