Update jsonld
This commit is contained in:
parent
9c69485b3a
commit
c2ce27ea6c
|
|
@ -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 }}
|
||||||
|
|
|
||||||
|
|
@ -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 }}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue