From af76a5d533794ec06e6d10a4c0f247df52b08a6d Mon Sep 17 00:00:00 2001 From: Jeremy Campbell Date: Wed, 28 Oct 2020 11:26:48 -0500 Subject: [PATCH] Fixed formatting of ld-json keywords list on list.html default --- layouts/_default/list.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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": {{- . -}}