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
parent a390958117
commit af76a5d533
1 changed files with 2 additions and 1 deletions

View File

@ -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": {{- . -}}