mirror of
https://github.com/thegeeklab/hugo-geekblog.git
synced 2024-11-23 05:30:41 +00:00
28 lines
842 B
HTML
28 lines
842 B
HTML
<meta charset="UTF-8" />
|
|
<meta name="referrer" content="no-referrer" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
{{ hugo.Generator }}
|
|
|
|
{{- $keywords := default .Site.Params.Keywords .Keywords -}}
|
|
{{- $authors := default (slice .Site.Params.GeekblogAuthor) .Params.authors -}}
|
|
|
|
{{- with partial "utils/description" . }}
|
|
<meta name="description" content="{{ trim (. | plainify) "\n" }}" />
|
|
{{- end }}
|
|
{{- with $keywords }}
|
|
<meta name="keywords" content="{{ delimit . "," }}" />
|
|
{{- end }}
|
|
{{- with $authors }}
|
|
{{- $list := slice -}}
|
|
{{- range sort . }}
|
|
{{- with . }}
|
|
{{- $author := index $.Site.Data.authors . -}}
|
|
{{- $list = $list | append $author.name -}}
|
|
{{- end }}
|
|
{{- end }}
|
|
|
|
{{- with $list }}
|
|
<meta name="author" content="{{ delimit . "," }}" />
|
|
{{- end }}
|
|
{{- end }}
|