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

github.com/Mitrichius/hugo-theme-anubis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Kolosov <mitrichius@gmail.com>2022-02-22 18:38:27 +0300
committerDmitry Kolosov <mitrichius@gmail.com>2022-02-22 18:44:32 +0300
commite98fcde09aa28f625977052b5ee8c3fe3e01c22b (patch)
treece753f8c0f5379f640b75aaa40d001d56607e8fa
parent4503d1b7a3b141b6820dfe5275b120d5bcc85215 (diff)
added support for meta keywords #137see-next-section/#44
-rw-r--r--layouts/partials/head.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index e62029c..dfbc9f7 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -7,6 +7,10 @@
{{ partial "title.html" . }}
<meta name="description" content="{{ with .Description }}{{ . }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end -}}">
+{{ with .Keywords }}
+ <meta name="keywords" content="{{ range $i, $e := . }}{{ if $i }},{{ end }}{{ $e }}{{ end }}">
+{{ end }}
+
{{ if and (.IsPage) (eq .Params.hidden true)}}
<meta name="robots" content="noindex" />
{{ end }}