hugo-geekblog/layouts/partials/head/meta.html

28 lines
820 B
HTML
Raw Normal View History

<meta charset="UTF-8" />
<meta name="referrer" content="no-referrer" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
{{ hugo.Generator }}
2020-07-25 11:53:27 +00:00
{{ $keywords := default .Site.Params.Keywords .Keywords }}
{{ $authors := default (slice .Site.Params.GeekblogAuthor) .Params.authors }}
2020-07-25 11:53:27 +00:00
{{ with partial "utils/description" . }}
<meta name="description" content="{{ trim (. | plainify) "\n" }}" />
2020-07-22 08:51:13 +00:00
{{ end }}
{{ with $keywords }}
<meta name="keywords" content="{{ delimit . "," }}" />
2020-07-22 08:51:13 +00:00
{{ end }}
{{ with $authors }}
{{ $list := slice }}
{{ range sort . }}
{{ with . }}
{{ $author := index $.Site.Data.authors . }}
{{ $list = $list | append $author.name }}
2020-07-22 08:51:13 +00:00
{{ end }}
{{ end }}
2020-07-06 18:55:32 +00:00
{{ with $list }}
<meta name="author" content="{{ delimit . "," }}" />
{{ end }}
2020-07-22 08:51:13 +00:00
{{ end }}