diff options
author | Jeremy Campbell <jcampbell@spins.com> | 2020-10-28 19:26:48 +0300 |
---|---|---|
committer | Alan Orth <alan.orth@gmail.com> | 2020-10-29 12:50:49 +0300 |
commit | 43d4fb3d2d6b77d41b3d7d158a7316d3753ab2d9 (patch) | |
tree | 9baa7ef95a24dc0844fd6477b2bf8d4a3dc89ea9 | |
parent | 5fe17ee12050e860d4e282c841a9a0e967b3c04e (diff) |
Fixed formatting of ld-json keywords list on list.html default
-rw-r--r-- | layouts/_default/list.html | 3 |
1 files changed, 2 insertions, 1 deletions
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": {{- . -}} |