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 }}
{{- end -}},
"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 }},
"priceRange": "$$$",
"geo": {
"@type": "GeoCoordinates",
"latitude" {{ .contact.geo.lat }},
"longitude" {{ .contact.geo.lon }}
"latitude": {{ .contact.geo.lat }},
"longitude": {{ .contact.geo.lon }}
}
{{ with .contact.social }}
{{- $social := slice -}}
@ -28,7 +30,7 @@
{{- with .twitter }}
{{- $social = $social | append . }}
{{- end }}
,"sameAs: {{ jsonify $social }}
,"sameAs": {{ jsonify $social }}
{{- end }}
{{- end }}
}