Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/carsonip/hugo-theme-minos.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/meta.html')
-rw-r--r--layouts/partials/meta.html3
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 }}