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:
authorCarson Ip <carsonip715@gmail.com>2019-12-01 18:29:17 +0300
committerCarson Ip <carsonip715@gmail.com>2019-12-01 18:29:17 +0300
commitb2105779853689fbc5f09d9ae0e772dd49b30649 (patch)
tree4a4b7087d21b4dc80c79cc47d70f8903df2eac61
parent45891eec00833649729f2995fda86627954a6ff6 (diff)
Fix html meta author generation
Fix #37
-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 }}