Fix json_ld output by removing quotes around params. Only hardcoded values neeed quotes.

This commit is contained in:
Fredrik Jonsson 2019-06-04 12:25:05 +02:00
commit 69b7a0bf75

View file

@ -3,9 +3,9 @@
"@context": "http://schema.org",
"@type": "WebSite",
"url" : {{ .Permalink }},
"name": "{{ .Title }}",
"name": {{ .Title }},
{{ with $.Param "description" -}}
"description": "{{ . }}",
"description": {{ . }},
{{ end -}}
{{ with $.Param "image" -}}
"image" : {{ . | absURL }},
@ -13,7 +13,7 @@
{{ with $.Param "author" -}}
"author": {
"@type": "Person",
"name": "{{ . }}"
"name": {{ . }}
},
{{ end -}}
"mainEntityOfPage": {
@ -22,7 +22,7 @@
},
"publisher": {
"@type": "Organization",
"name": "{{ .Site.Title }}",
"name": {{ .Site.Title }},
"url": {{ .Site.BaseURL }}
}
}