diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 94c9f01..74352c1 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -15,7 +15,8 @@ "dateModified": {{ .Date.Format $ISO8601 }}, {{- end }} {{- /* 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 -}} , "description": {{- . -}}