2023-06-21 15:34:33 +02:00
|
|
|
{{ $author := index .Site.Data.personen (substr $.File.LogicalName 0 -3) }}
|
2023-05-17 09:30:00 +02:00
|
|
|
{{ $location := index .Site.Data.location .Site.Params.primarylocation }}
|
2023-06-23 11:40:47 +02:00
|
|
|
{{ $sameas := slice }}
|
|
|
|
{{ if $author.sameas }}{{ $sameas = $sameas | append ($author.sameas) }}{{ end }}
|
|
|
|
{{ if $author.websites }}
|
|
|
|
{{ range index ($author.websites) }}
|
|
|
|
{{ if eq .sameas true }}
|
|
|
|
{{ $sameas = $sameas | append (.url) }}
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
{{ if $author.social }}
|
|
|
|
{{ if $author.social.github }}
|
|
|
|
{{ $sameas = $sameas | append (printf "https://github.com/%s" $author.social.github) }}
|
|
|
|
{{ end }}
|
|
|
|
{{ if $author.social.linkedin }}
|
|
|
|
{{ $sameas = $sameas | append ($author.social.linkedin) }}
|
|
|
|
{{ end }}
|
|
|
|
{{ if $author.social.mastodon }}
|
|
|
|
{{ $sameas = $sameas | append ($author.social.mastodon_url) }}
|
|
|
|
{{ end }}
|
|
|
|
{{ if $author.social.twitter }}
|
|
|
|
{{ $sameas = $sameas | append (printf "https://twitter.com/%s" $author.social.twitter) }}
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
2023-05-17 09:30:00 +02:00
|
|
|
<script type="application/ld+json">
|
|
|
|
{
|
2023-06-23 11:40:47 +02:00
|
|
|
"@context": "https://schema.org",
|
2023-06-21 15:34:33 +02:00
|
|
|
"@type": "Person",
|
|
|
|
"@id": "{{ .Permalink }}#person",
|
|
|
|
"url": "{{ .Permalink }}",
|
|
|
|
"name": "{{ $author.name | default .Site.Params.textEmptyValue }}",
|
|
|
|
{{ if $author.nationality }}"nationality": "{{ $author.nationality }}",{{ end }}
|
|
|
|
{{ if $author.gender }}"gender": "{{ $author.gender }}",{{ end }}
|
|
|
|
{{ if $author.jobfunction }}"Description": "{{ $author.jobfunction }}",{{ end }}
|
|
|
|
{{ if $author.description }}"disambiguatingDescription": "{{ $author.description }}",{{ end }}
|
|
|
|
{{ if $author.jobtitle }}"jobTitle": "{{ $author.jobtitle }}",{{ end }}
|
|
|
|
{{ if $author.worksfor }}
|
|
|
|
"worksFor": [
|
|
|
|
{
|
|
|
|
"@type": "Organization",
|
|
|
|
"name": "{{ .Site.Params.name | default .Site.Params.textEmptyValue }}"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
{{ end }}
|
2023-06-23 11:40:47 +02:00
|
|
|
{{ if $sameas }}
|
|
|
|
"sameAs": [{{ range $i, $e := $sameas }}{{ if $i }}, {{ end }}"{{ $e }}"{{ end }}],
|
|
|
|
{{ end }}
|
2023-06-21 15:34:33 +02:00
|
|
|
{{ if $author.address }}
|
|
|
|
"address": {
|
|
|
|
"@type": "PostalAddress",
|
|
|
|
"addressLocality": "{{ $author.address.city }}",
|
|
|
|
"addressRegion": "{{ $author.address.region }}",
|
|
|
|
"addressCountry": "{{ $author.address.country }}"
|
|
|
|
},{{ end }}
|
|
|
|
"image": "{{ $author.thumbnail | absURL }}",
|
|
|
|
"mainEntityOfPage": {
|
|
|
|
"@type": "ProfilePage",
|
|
|
|
"@id": "{{ .Permalink }}#profilepage",
|
|
|
|
"url": "{{ .Permalink }}",
|
|
|
|
"name": "{{ .Title }}",
|
2023-06-23 11:40:47 +02:00
|
|
|
"mainContentOfPage": {
|
|
|
|
"@type": "WebPageElement",
|
|
|
|
"cssSelector": ".content"
|
|
|
|
},
|
2023-06-21 15:34:33 +02:00
|
|
|
"speakable": {
|
|
|
|
"@type": "SpeakableSpecification",
|
|
|
|
"cssSelector": ".speakable"
|
|
|
|
},
|
|
|
|
"isPartOf": {
|
|
|
|
"@type": "WebSite",
|
|
|
|
"@id": "{{ .Site.BaseURL }}#website",
|
|
|
|
"url": "{{ .Site.BaseURL }}",
|
|
|
|
"name": "{{ .Site.Title | default .Site.Params.textNoTitle }}"
|
|
|
|
}
|
2023-05-18 20:33:08 +02:00
|
|
|
}
|
2023-05-17 09:30:00 +02:00
|
|
|
}
|
|
|
|
</script>
|