mirror of
https://github.com/alanorth/hugo-theme-bootstrap4-blog.git
synced 2024-12-19 00:52:19 +01:00
Fixed formatting of ld-json keywords list on list.html default
This commit is contained in:
parent
5fe17ee120
commit
43d4fb3d2d
@ -15,7 +15,8 @@
|
|||||||
"dateModified": {{ .Date.Format $ISO8601 }},
|
"dateModified": {{ .Date.Format $ISO8601 }},
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- /* all of the site's categories/tags, from Hugo's tpl/template_embedded.go */}}
|
{{- /* 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 -}}
|
{{- with .Site.Params.description -}}
|
||||||
,
|
,
|
||||||
"description": {{- . -}}
|
"description": {{- . -}}
|
||||||
|
Loading…
Reference in New Issue
Block a user