Update jsonld

This commit is contained in:
Patrick Neff 2019-01-14 16:24:20 +01:00
parent 7f5fc010a7
commit ea5f3f8ad7
1 changed files with 6 additions and 4 deletions

View File

@ -10,12 +10,14 @@
"faxNumber": {{ . | jsonify }} "faxNumber": {{ . | jsonify }}
{{- end -}}, {{- end -}},
"address": {{ partial "schema/address.jsonld" (dict "address" .contact.address "ctx" .ctx)}}, "address": {{ partial "schema/address.jsonld" (dict "address" .contact.address "ctx" .ctx)}},
"logo": {{ partial "schema/image.jsonld" (dict "url" "/img/logo.svg" "ctx" .ctx) }} "logo": {{ partial "schema/image.jsonld" (dict "url" "/img/logo.png" "ctx" .ctx) }},
"image": {{ partial "schema/image.jsonld" (dict "url" "/img/logo.png" "ctx" .ctx) }},
"openingHours": {{ jsonify .contact.openingHours }}, "openingHours": {{ jsonify .contact.openingHours }},
"priceRange": "$$$",
"geo": { "geo": {
"@type": "GeoCoordinates", "@type": "GeoCoordinates",
"latitude" {{ .contact.geo.lat }}, "latitude": {{ .contact.geo.lat }},
"longitude" {{ .contact.geo.lon }} "longitude": {{ .contact.geo.lon }}
} }
{{ with .contact.social }} {{ with .contact.social }}
{{- $social := slice -}} {{- $social := slice -}}
@ -28,7 +30,7 @@
{{- with .twitter }} {{- with .twitter }}
{{- $social = $social | append . }} {{- $social = $social | append . }}
{{- end }} {{- end }}
,"sameAs: {{ jsonify $social }} ,"sameAs": {{ jsonify $social }}
{{- end }} {{- end }}
{{- end }} {{- end }}
} }