7
0
Fork 0
This repository has been archived on 2024-10-15. You can view files and clone it, but cannot push or open issues or pull requests.
fediversity_website_archive/themes/nluug/layouts/partials/schemas/schema_WebPage.html

45 lines
1.2 KiB
HTML
Raw Permalink Normal View History

<script type="application/ld+json">
{
2023-06-23 11:39:59 +02:00
"@context": "https://schema.org",
"@type": "WebPage",
"@id": "{{ .Permalink }}#webpage",
"name": "{{ .Title | default .Site.Params.textEmptyValue }}",
"datePublished": {{ .Date }},
"dateModified": {{ .Lastmod }},
"inLanguage": "{{ .Site.LanguageCode }}",
{{ if .Params.review.reviewed_by }}
{{ if findRE `^[a-z]+(\-[a-z]+)+$` .Params.review.reviewed_by 1 }}
{{ with (index $.Site.Data.personen .Params.review.reviewed_by) }}
"reviewedBy": {
"@type": "Person",
"name": "{{ .name }}",
"sameAs": "{{ .profile_page | absURL }}"
},
{{ end }}
{{ else }}
"reviewedBy": {
"@type": "Person",
"name": "{{ .Params.review.reviewed_by }}"
},
{{ end }}
{{ end }}
{{ if .Params.review.last_review }}
"lastReviewed": "{{ .Params.review.last_review }}",
{{ end }}
"mainContentOfPage": {
"@type": "WebPageElement",
"cssSelector": ".content"
},
"speakable": {
"@type": "SpeakableSpecification",
"cssSelector": ".speakable"
},
"isPartOf": {
"@type": "WebSite",
"@id": "{{ .Site.BaseURL }}#website",
"url": "{{ .Site.BaseURL }}",
"name": "{{ .Site.Title | default .Site.Params.textNoTitle }}"
}
}
</script>