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

github.com/dldx/hpstr-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/head.html')
-rw-r--r--layouts/partials/head.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 728afa6..794128f 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -10,10 +10,11 @@
{{ if .IsHome }}
{{ $.Scratch.Set "Params" .Site.Params }}
{{ else if .IsNode }}
- {{ $.Scratch.Set "Params" (index .Site.Data.sections (lower .Title)) }}
+ {{ $.Scratch.Set "Params" (index (.Site.Data.sections) (lower .Title)) }}
{{ else }}
{{ $.Scratch.Set "Params" .Params }}
{{ end }}
+
{{ if .Params.tags }}<meta name="keywords" content="{{ delimit .Params.tags ", " }}">{{ end }}
<!-- Open Graph and Twitter cards -->