This repository has been archived on 2024-11-13. You can view files and clone it, but cannot push or open issues or pull requests.
fediversity_website/themes/nluug/layouts/partials/schemas/schema_Organization.html

29 lines
1.1 KiB
HTML

{{ $logoresource := resources.Get ($.Site.Params.logoNormal | replaceRE "^/" "") }}
<script type="application/ld+json">
{
"@context": "https://schema.org/",
"@type": "NGO",
"id": "{{ .Site.BaseURL }}#organization",
"url": "{{ .Site.BaseURL }}",
"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 -}}
"sameAs": {{ .Site.Params.organization_sameas }},
"telephone":"{{ .Site.Params.phone }}"
}
</script>