diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 26909fd..91d6df7 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -15,10 +15,10 @@ "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": {{ range $plural, $terms := .Site.Taxonomies }}{{ range $term, $val := $terms }}{{ printf "%s," $term }}{{ end }}{{ end }} {{- with .Site.Params.description -}} , - "description": "{{- . -}}" + "description": {{- . -}} {{- end }} } diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 0184b3e..ab7b1ae 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -38,12 +38,12 @@ } {{- if or (.Params.keywords) (or (.Params.categories) (.Params.tags)) -}} , - "keywords": "{{ delimit (union .Params.keywords (union .Params.categories .Params.tags)) ", " }}" + "keywords": {{ delimit (union .Params.keywords (union .Params.categories .Params.tags)) ", " }} {{- end }} {{- with .Params.description -}} , - "description": "{{ . }}" + "description": {{ . }} {{- end }} }