2021-12-30 14:55:55 +00:00
|
|
|
<meta charset="UTF-8" />
|
2022-02-06 12:13:05 +00:00
|
|
|
<meta name="referrer" content="no-referrer" />
|
2021-12-30 14:55:55 +00:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
2022-02-06 12:48:16 +00:00
|
|
|
{{ hugo.Generator }}
|
2020-07-25 11:53:27 +00:00
|
|
|
|
2022-02-06 15:59:16 +00:00
|
|
|
{{- $keywords := default .Site.Params.Keywords .Keywords -}}
|
|
|
|
{{- $authors := default (slice .Site.Params.GeekblogAuthor) .Params.authors -}}
|
2022-09-11 11:54:25 +00:00
|
|
|
{{- $seoIgnore := default (slice "taxonomy" "section" "term" "404") .Site.Params.GeekblogSeoIgnore -}}
|
2020-07-25 11:53:27 +00:00
|
|
|
|
2022-09-11 11:54:25 +00:00
|
|
|
{{- if not (in $seoIgnore .Kind) }}
|
|
|
|
<meta name="robots" content="index, follow" />
|
|
|
|
{{- else }}
|
|
|
|
<meta name="robots" content="noindex, nofollow" />
|
|
|
|
{{- end }}
|
2022-02-06 15:59:16 +00:00
|
|
|
{{- with partial "utils/description" . }}
|
2022-02-14 21:58:34 +00:00
|
|
|
<meta name="description" content="{{ . | plainify | htmlUnescape | chomp }}" />
|
2022-02-06 15:59:16 +00:00
|
|
|
{{- end }}
|
|
|
|
{{- with $keywords }}
|
2021-12-30 14:55:55 +00:00
|
|
|
<meta name="keywords" content="{{ delimit . "," }}" />
|
2022-02-06 15:59:16 +00:00
|
|
|
{{- end }}
|
|
|
|
{{- with $authors }}
|
|
|
|
{{- $list := slice -}}
|
|
|
|
{{- range sort . }}
|
|
|
|
{{- with . }}
|
|
|
|
{{- $author := index $.Site.Data.authors . -}}
|
|
|
|
{{- $list = $list | append $author.name -}}
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
|
|
|
{{- with $list }}
|
2021-12-30 14:55:55 +00:00
|
|
|
<meta name="author" content="{{ delimit . "," }}" />
|
2022-02-06 15:59:16 +00:00
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|