Add meta and title tags for seo (#46)
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user