Invullen van meer velden voor Schema.org
This commit is contained in:
parent
88c465f593
commit
49337eba68
2 changed files with 70 additions and 68 deletions
|
@ -1,8 +1,26 @@
|
|||
{{ $logoresource := resources.Get ($.Site.Params.logoNormal | replaceRE "^/" "") }}
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "https://schema.org/",
|
||||
"@type": "Organization",
|
||||
"@type": "NGO",
|
||||
"url": "{{ .Site.BaseURL }}",
|
||||
"logo": "{{ .Site.Params.logoHiRes | absURL | default .Site.Params.textEmptyValue }}"
|
||||
"name": "{{ .Site.Title }}",
|
||||
"logo": {
|
||||
"@type": "ImageObject",
|
||||
"url": "{{ $logoresource.Permalink | default .Site.Params.textNoValue }}",
|
||||
"height": "{{ $logoresource.Height }}",
|
||||
"width": {{ printf "%d" $logoresource.Width }}
|
||||
},
|
||||
{{- with .Site.Params.address -}}
|
||||
"address": {
|
||||
"@type": "PostalAddress",
|
||||
"streetAddress": "{{ .street | default .Site.Params.textNoValue }}",
|
||||
"addressLocality": "{{ .city | default .Site.Params.textNoValue }}",
|
||||
"addressRegion": "{{ .region | default .Site.Params.textNoValue }}",
|
||||
"addressCountry": "{{ .country | default .Site.Params.textNoValue }}",
|
||||
"postalCode": "{{ .postalcode | default .Site.Params.textNoValue }}"
|
||||
},
|
||||
{{- end -}}
|
||||
"telephone":"{{ .Site.Params.phone }}"
|
||||
}
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue