|
1 | 1 | <meta charset="utf-8"/> |
2 | 2 | <meta name="viewport" content="width=device-width initial-scale=1.0"/> |
3 | 3 | {{- if .IsHome -}} |
4 | | - <title>{{- site.Title | emojify }}</title> |
5 | | -{{ else -}} |
6 | | - <title>{{ .Title | emojify }} · {{ .Site.Title | emojify }}</title> |
7 | | - <meta name="title" content="{{ .Title | emojify }} · {{ .Site.Title | emojify }}"/> |
8 | | -{{ end -}} |
| 4 | + <title>{{- site.Title | emojify }}</title> |
| 5 | +{{- else -}} |
| 6 | + <title>{{ .Title | emojify }} · {{ .Site.Title | emojify }}</title> |
| 7 | + <meta name="title" content="{{ .Title | emojify }} · {{ .Site.Title | emojify }}"/> |
| 8 | +{{- end -}} |
9 | 9 | <!-- Metadata --> |
10 | | -{{- with .Params.Description -}} |
11 | | - <meta name="description" content="{{ . }}"/> |
12 | | -{{ else -}} |
13 | | - <meta name="description" content="{{ $.Site.Params.Description }}"/> |
14 | | -{{ end -}} |
15 | | -{{ with .Site.Params.keywords -}} |
16 | | - <meta name="keywords" content="{{ . }}"/> |
17 | | -{{ end -}} |
18 | | -{{ with .Site.Params.robots -}} |
19 | | - <meta name="robots" content="{{ . }}"/> |
20 | | -{{ end -}} |
21 | | -{{ with .Params.robots -}} |
22 | | - <meta name="robots" content="{{ . }}"/> |
| 10 | +{{- if .Description -}} |
| 11 | + <meta name="description" content="{{ .Description }}"/> |
| 12 | +{{- else -}} |
| 13 | + <meta name="description" content="{{ $.Site.Params.Description }}"/> |
| 14 | +{{- end -}} |
| 15 | +{{- if .Keywords -}} |
| 16 | + <meta name="keywords" content="{{ . }}"/> |
| 17 | +{{- else -}} |
| 18 | +{{- with .Site.Params.keywords -}} |
| 19 | + <meta name="keywords" content="{{ . }}"/> |
| 20 | +{{- end -}}{{- end -}} |
| 21 | +{{- with .Site.Params.robots -}} |
| 22 | + <meta name="robots" content="{{ . }}"/> |
| 23 | +{{- end -}} |
| 24 | +{{- with .Params.robots -}} |
| 25 | + <meta name="robots" content="{{ . }}"/> |
23 | 26 | {{ end -}} |
24 | 27 | <link rel="canonical" href="{{ .Permalink | absURL }}"/> |
25 | 28 | {{- range .AlternativeOutputFormats }} |
26 | | - {{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .RelPermalink $.Site.Title | emojify | safeHTML -}} |
| 29 | + {{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .RelPermalink $.Site.Title | emojify | safeHTML -}} |
27 | 30 | {{- end -}} |
28 | 31 | {{ partialCached "head/css.html" . -}} |
29 | 32 | {{- partialCached "fonts.html" . -}} |
|
34 | 37 | <link rel="manifest" href="/site.webmanifest"/> |
35 | 38 | <!-- https://gohugo.io/templates/rss/#include-feed-reference --> |
36 | 39 | {{- with .OutputFormats.Get "rss" }} |
37 | | - {{- printf `<link rel=%q type=%q href=%q title=%q>` .Rel .MediaType.Type .Permalink site.Title | safeHTML -}} |
| 40 | + {{- printf `<link rel=%q type=%q href=%q title=%q>` .Rel .MediaType.Type .Permalink site.Title | safeHTML -}} |
38 | 41 | {{- end -}} |
39 | 42 | <!-- Add your custom headers here --> |
40 | 43 | {{- partial "head-custom.html" . -}} |
|
0 commit comments