{{ $author := index .Site.Data.personen (substr $.File.LogicalName 0 -3) }} {{ $location := index .Site.Data.location .Site.Params.primarylocation }} {{ $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 }}