mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-20 02:16:40 +00:00
BREAKING CHANGES: in params.yaml:
```
appearance:
theme_day: minimal
theme_night: minimal
font: minimal
font_size: L
seo:
site_type: Person
local_business_type: ''
org_name: ''
description: ''
twitter: ''
header:
navbar:
enable: false
footer:
text:
copyright:
notice: '© {year} Me. This work is licensed under {license}'
license:
enable: true
allow_derivatives: false
share_alike: true
allow_commercial: false
features:
privacy_pack: false
```
31 lines
1.1 KiB
HTML
31 lines
1.1 KiB
HTML
{{- $sharing_image := resources.GetMatch (path.Join "media" "sharing.*") -}}
|
|
<script type="application/ld+json">
|
|
{
|
|
"@context": "https://schema.org",
|
|
"@type": {{site.Params.seo.site_type | default site.Params.seo.site_type}},
|
|
"@id": {{site.BaseURL}},
|
|
"name": {{site.Params.seo.org_name | default site.Title}},
|
|
"logo": {{ partial "functions/get_logo_url" . }},
|
|
{{with $sharing_image}}"image": {{.Permalink}},{{end}}
|
|
{{ if (eq site.Params.seo.site_type "LocalBusiness") | and site.Params.coordinates }}
|
|
"geo": {
|
|
"@type": "GeoCoordinates",
|
|
"latitude": {{site.Params.coordinates.latitude}},
|
|
"longitude": {{site.Params.coordinates.longitude}}
|
|
},
|
|
{{end}}
|
|
{{ with site.Params.address }}
|
|
"address": {
|
|
"@type": "PostalAddress",
|
|
"streetAddress": {{ .street | default "" }},
|
|
"addressLocality": {{ .city | default "" }},
|
|
"addressRegion": {{ .region | default "" }},
|
|
"postalCode": {{ .postcode | default "" }},
|
|
"addressCountry": {{ .country_code | default .country | default "" }}
|
|
},
|
|
{{end}}
|
|
{{ with site.Params.phone }}"telephone": {{.}},{{end}}
|
|
"url": {{site.BaseURL}}
|
|
}
|
|
</script>
|