diff options
Diffstat (limited to 'layouts/partials/meta.html')
-rw-r--r-- | layouts/partials/meta.html | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/layouts/partials/meta.html b/layouts/partials/meta.html index fec0354..a61298b 100644 --- a/layouts/partials/meta.html +++ b/layouts/partials/meta.html @@ -1,9 +1,8 @@ - {{- $author := .Site.Params.Author -}} {{- $description := or (.Description) (.Site.Params.Description) -}} {{- $keywords := or (.Keywords) (.Site.Params.Keywords) -}} <meta charset="utf-8"> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1"> - {{ if $author -}} <meta name="author" content="{{ range $author }} {{ .displayname }}, {{ end}}"> {{- end }} + {{ with .Site.Params.Author -}}<meta name="author" content="{{ . }}">{{- end }} {{ if $description -}} <meta name="description" content="{{ $description }}"> {{- end }} {{ if $keywords -}} <meta name="keywords" content="{{ range $keywords }}{{ . }},{{ end }}"> {{- end }} |