mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-13 12:13:58 +00:00
BREAKING CHANGE Module paths moved to `github.com/HugoBlox/kit` with new names: - core `blox-tailwind` → `blox` - analytics → `analytics` - netlify → `integrations/netlify` - slides (reveal) → `slides` Update go.mod, module.yaml/params, scripts, tests, and v0.11 migration guide accordingly.
32 lines
1.3 KiB
HTML
32 lines
1.3 KiB
HTML
{{- $sharing_image := resources.GetMatch (path.Join "media" "sharing.*") -}}
|
|
{{- $branding := partialCached "functions/get_branding" . "branding" -}}
|
|
<script type="application/ld+json">
|
|
{
|
|
"@context": "https://schema.org",
|
|
"@type": {{site.Params.hugoblox.identity.type | humanize | default "Organization"}},
|
|
"@id": {{site.BaseURL}},
|
|
"name": {{$branding.organization}},
|
|
"logo": {{ partial "functions/get_logo_url" . }},
|
|
{{with $sharing_image}}"image": {{.Permalink}},{{end}}
|
|
{{ if (eq site.Params.hugoblox.identity.type "local_business") | and site.Params.hugoblox.seo.location.coordinates }}
|
|
"geo": {
|
|
"@type": "GeoCoordinates",
|
|
"latitude": {{site.Params.hugoblox.seo.location.coordinates.latitude}},
|
|
"longitude": {{site.Params.hugoblox.seo.location.coordinates.longitude}}
|
|
},
|
|
{{end}}
|
|
{{ with site.Params.hugoblox.seo.location.address }}
|
|
"address": {
|
|
"@type": "PostalAddress",
|
|
"streetAddress": {{ .street | default "" }},
|
|
"addressLocality": {{ .city | default "" }},
|
|
"addressRegion": {{ .region | default "" }},
|
|
"postalCode": {{ .postal_code | default "" }},
|
|
"addressCountry": {{ .country | default "" }}
|
|
},
|
|
{{end}}
|
|
{{ with site.Params.hugoblox.seo.location.phone }}"telephone": {{.}},{{end}}
|
|
"url": {{site.BaseURL}}
|
|
}
|
|
</script>
|