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_Person.html

44 lines
1.5 KiB
HTML
Raw Normal View History

2023-06-10 00:16:41 +02:00
{{ if .Params.slug }}
{{ $author := index .Site.Data.personen .Params.slug }}
{{ $location := index .Site.Data.location .Site.Params.primarylocation }}
<script type="application/ld+json">
{
"@context": "https://www.schema.org",
"@type": "Person",
"@id": "{{ .Permalink }}",
"name": "{{ $author.name | default .Site.Params.textEmptyValue }}",
{{ if $author.nationality }}"nationality": "{{ $author.nationality }}",{{ end }}
"affiliation": [
{
"@type": "Organization",
2023-06-10 00:16:41 +02:00
"name": "{{ $.Site.Params.organization_name | default .Site.Params.textEmptyValue }}"
}
],
{{ if $author.gender }}"gender": "{{ $author.gender }}",{{ end }}
{{ if $author.jobfunction }}"Description": "{{ $author.jobfunction }}",{{ end }}
2023-06-10 00:16:41 +02:00
{{ if $author.description }}"disambiguatingDescription": "{{ $author.description }}",{{ end }}
{{ if $author.jobtitle }}"jobTitle": "{{ $author.jobtitle }}",{{ end }}
2023-06-10 00:16:41 +02:00
{{ if $author.worksfor }}
"worksFor": [
{
"@type": "Organization",
"name": "{{ .Site.Params.name | default .Site.Params.textEmptyValue }}",
"sameAs": [ {{ partial "schemas/schema_Social.html" .Site.Params }}
]
}
],
2023-06-10 00:16:41 +02:00
{{ end }}
{{ if $author.sameas }}"sameAs": "{{ $author.sameas }}",{{ end }}
{{ if $author.address }}
"address": {
"@type": "PostalAddress",
"addressLocality": "{{ $author.address.city }}",
"addressRegion": "{{ $author.address.region }}",
"addressCountry": "{{ $author.address.country }}"
},{{ end }}
2023-06-10 00:16:41 +02:00
"image": "{{ $author.thumbnail | absURL }}",
"url": "{{ .Permalink }}"
}
</script>
{{ end }}