mirror of
https://github.com/thegeeklab/hugo-geekblog.git
synced 2024-11-04 20:30:44 +00:00
25 lines
808 B
HTML
25 lines
808 B
HTML
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
{{ $description := default (default .Site.Title .Site.Params.description) (default .Summary .Description) }}
|
|
{{ $keywords := default .Site.Params.Keywords .Keywords }}
|
|
{{ $author := default (slice .Site.Params.GeekblogAuthor) .Params.authors }}
|
|
|
|
{{ with $description }}
|
|
<meta name="description" content="{{ . }}">
|
|
{{ end }}
|
|
{{ with $keywords }}
|
|
<meta name="keywords" content="{{ delimit . "," }}">
|
|
{{ end }}
|
|
{{ with $author }}
|
|
{{ $authors := slice }}
|
|
{{ range sort . }}
|
|
{{ $author := index $.Site.Data.authors . }}
|
|
{{ $authors = $authors | append $author.name }}
|
|
{{ end }}
|
|
|
|
{{ with $authors }}
|
|
<meta name="author" content="{{ delimit . "," }}">
|
|
{{ end }}
|
|
{{ end }}
|