diff options
author | Carson Ip <carsonip715@gmail.com> | 2019-12-01 18:29:17 +0300 |
---|---|---|
committer | Carson Ip <carsonip715@gmail.com> | 2019-12-01 18:29:17 +0300 |
commit | b2105779853689fbc5f09d9ae0e772dd49b30649 (patch) | |
tree | 4a4b7087d21b4dc80c79cc47d70f8903df2eac61 | |
parent | 45891eec00833649729f2995fda86627954a6ff6 (diff) |
Fix html meta author generation
Fix #37
-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 }} |