Update jsonld

This commit is contained in:
Patrick Neff 2019-01-14 15:44:05 +01:00
parent 9c69485b3a
commit c2ce27ea6c
2 changed files with 4 additions and 4 deletions

View File

@ -5,12 +5,12 @@
"url": "{{ .ctx.Site.BaseURL }}", "url": "{{ .ctx.Site.BaseURL }}",
"email": "{{ .org.email }}", "email": "{{ .org.email }}",
"telephone": {{ .org.telephone | jsonify }}, "telephone": {{ .org.telephone | jsonify }},
"logo": {{ partial "schema/image.jsonld" (dict "url" "/img/logo.svg" "ctx" .ctx) }}
{{ if (ne .short true) }} {{ if (ne .short true) }}
{{- with .org.faxNumber -}} {{- with .org.faxNumber -}}
"faxNumber": {{ . | jsonify }} ,"faxNumber": {{ . | jsonify }}
{{- end -}}, {{- end -}},
"address": {{ partial "schema/address.jsonld" (dict "address" .org.address "ctx" .ctx)}}, ,"address": {{ partial "schema/address.jsonld" (dict "address" .org.address "ctx" .ctx)}},
"logo": {{ partial "schema/image.jsonld" (dict "url" "/img/logo.svg" "ctx" .ctx) }}
{{ with .org.social }} {{ with .org.social }}
{{- $social := slice -}} {{- $social := slice -}}
{{- with .facebook }} {{- with .facebook }}

View File

@ -30,5 +30,5 @@
"keywords": "{{ with .post.Keywords }}{{ delimit . ", " }}{{ end }}", "keywords": "{{ with .post.Keywords }}{{ delimit . ", " }}{{ end }}",
{{ $imageURL := path.Join .post.RelPermalink "bilder/" .post.Params.featuredImage }} {{ $imageURL := path.Join .post.RelPermalink "bilder/" .post.Params.featuredImage }}
"image": {{ partial "schema/image.jsonld" (dict "url" $imageURL "ctx" .ctx) }}, "image": {{ partial "schema/image.jsonld" (dict "url" $imageURL "ctx" .ctx) }},
"articleBody": {{ .ctx.Content }} "articleBody": {{ .ctx.Content | jsonify }}
} }