{{ $page := .page }} {{ $author_page := .author_page }} {{ $site_type := site.Params.marketing.seo.site_type | default "Person" }} {{- $has_profile := not (eq nil $author_page.Params.superuser) -}} {{/* Check an author profile exists. */}} {{ if $has_profile }} {{/* If it's a personal site and primary page author is superuser, link to the homepage rather than their profile page. */}} {{ $profile_url := $author_page.RelPermalink }} {{ if and (eq $site_type "Person") (eq $author_page.Params.superuser true) }} {{ $profile_url = site.BaseURL }} {{ end }} {{ $avatar := ($author_page.Resources.ByType "image").GetMatch "*avatar*" }} {{ $avatar_shape := site.Params.features.avatar.shape | default "circle" }}
{{ if $avatar }} {{/* Use utility for high-res avatar processing (smart for Retina displays) */}} {{ $responsive := partial "functions/process_responsive_image.html" (dict "image" $avatar "mode" "fill" "aspect_ratio" "1:1" "anchor" "Center" "sizes" (slice 96 192 288 384) ) }} {{$author_page.Title}} {{ end }}
{{ i18n "authors" }}
{{if $profile_url}}{{end}} {{$author_page.Title}} {{if $profile_url}}{{end}} {{- with $author_page.Params.pronouns -}} ({{ . }}) {{- end -}}
{{ with $author_page.Params.role }}
{{. | markdownify | emojify}}
{{end}} {{ with $author_page.Params.bio }}
{{ . | markdownify | emojify }}
{{ end }}
{{ partial "social_links" $author_page }}
{{end}}{{/* End Check for Author Profile */}}