2023-06-10 00:16:41 +02:00
|
|
|
{{ if .Params.slug }}
|
|
|
|
{{ $author := index .Site.Data.personen .Params.slug }}
|
2023-05-17 09:30:00 +02:00
|
|
|
{{ $location := index .Site.Data.location .Site.Params.primarylocation }}
|
|
|
|
<script type="application/ld+json">
|
|
|
|
{
|
2023-05-18 20:33:08 +02:00
|
|
|
"@context": "https://www.schema.org",
|
2023-05-17 09:30:00 +02:00
|
|
|
"@type": "Person",
|
|
|
|
"@id": "{{ .Permalink }}",
|
2023-05-18 20:33:08 +02:00
|
|
|
"name": "{{ $author.name | default .Site.Params.textEmptyValue }}",
|
2023-05-17 09:30:00 +02:00
|
|
|
{{ if $author.nationality }}"nationality": "{{ $author.nationality }}",{{ end }}
|
|
|
|
"affiliation": [
|
2023-05-18 20:33:08 +02:00
|
|
|
{
|
|
|
|
"@type": "Organization",
|
2023-06-17 23:49:27 +02:00
|
|
|
"name": "{{ $.Site.Params.organization_name | default .Site.Params.textEmptyValue }}",
|
|
|
|
"sameAs": {{ .Site.Params.organization_sameas }}
|
2023-05-18 20:33:08 +02:00
|
|
|
}
|
2023-05-17 09:30:00 +02:00
|
|
|
],
|
|
|
|
{{ 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 }}
|
2023-05-17 09:30:00 +02:00
|
|
|
{{ if $author.jobtitle }}"jobTitle": "{{ $author.jobtitle }}",{{ end }}
|
2023-06-10 00:16:41 +02:00
|
|
|
{{ if $author.worksfor }}
|
2023-05-17 09:30:00 +02:00
|
|
|
"worksFor": [
|
2023-05-18 20:33:08 +02:00
|
|
|
{
|
|
|
|
"@type": "Organization",
|
2023-06-15 11:53:46 +02:00
|
|
|
"name": "{{ .Site.Params.name | default .Site.Params.textEmptyValue }}"
|
2023-05-18 20:33:08 +02:00
|
|
|
}
|
2023-05-17 09:30:00 +02:00
|
|
|
],
|
2023-06-10 00:16:41 +02:00
|
|
|
{{ end }}
|
|
|
|
{{ if $author.sameas }}"sameAs": "{{ $author.sameas }}",{{ end }}
|
2023-05-17 09:30:00 +02:00
|
|
|
{{ if $author.address }}
|
|
|
|
"address": {
|
2023-05-18 20:33:08 +02:00
|
|
|
"@type": "PostalAddress",
|
|
|
|
"addressLocality": "{{ $author.address.city }}",
|
|
|
|
"addressRegion": "{{ $author.address.region }}",
|
|
|
|
"addressCountry": "{{ $author.address.country }}"
|
2023-05-17 09:30:00 +02:00
|
|
|
},{{ end }}
|
2023-06-10 00:16:41 +02:00
|
|
|
"image": "{{ $author.thumbnail | absURL }}",
|
|
|
|
"url": "{{ .Permalink }}"
|
2023-05-17 09:30:00 +02:00
|
|
|
}
|
|
|
|
</script>
|
|
|
|
{{ end }}
|