1
0
mirror of https://github.com/alanorth/hugo-theme-bootstrap4-blog.git synced 2024-12-19 00:52:19 +01:00

Fixed formatting of ld-json keywords list on list.html default

This commit is contained in:
Jeremy Campbell 2020-10-28 11:26:48 -05:00 committed by Alan Orth
parent 5fe17ee120
commit 43d4fb3d2d

View File

@ -15,7 +15,8 @@
"dateModified": {{ .Date.Format $ISO8601 }}, "dateModified": {{ .Date.Format $ISO8601 }},
{{- end }} {{- end }}
{{- /* all of the site's categories/tags, from Hugo's tpl/template_embedded.go */}} {{- /* all of the site's categories/tags, from Hugo's tpl/template_embedded.go */}}
"keywords": {{ range $plural, $terms := .Site.Taxonomies }}{{ range $term, $val := $terms }}{{ printf "%s," $term }}{{ end }}{{ end }} {{- $keywords := slice }}{{ range $plural, $terms := .Site.Taxonomies }}{{ range $term, $val := $terms }}{{ $keywords = $keywords | append $term }}{{ end }}{{ end }}
"keywords": {{ delimit $keywords ", " }}
{{- with .Site.Params.description -}} {{- with .Site.Params.description -}}
, ,
"description": {{- . -}} "description": {{- . -}}