{{ $profile := .profile }} {{ $page := .page }} {{ $site_type := site.Params.hugoblox.identity.type | humanize | default "Person" }} {{ $avatar_shape := site.Params.hugoblox.layout.avatar_shape | default "circle" }} {{ if $profile }} {{/* If it's a personal site and the profile is owner, link home */}} {{ $profile_url := printf "/authors/%s/" $profile.slug }} {{ if and (eq $site_type "Person") ($profile.is_owner) }} {{ $profile_url = site.BaseURL }} {{ end }} {{ $avatar := $profile.avatar }}
{{ if $avatar }} {{ if not (reflect.IsImageResourceProcessable $avatar) }} {{$profile.title}} {{ else }} {{ $responsive := partial "functions/process_responsive_image.html" (dict "image" $avatar "mode" "fill" "aspect_ratio" "1:1" "anchor" "Center" "sizes" (slice 96 192 288 384) ) }} {{$profile.title}} {{ end }} {{ end }}
{{ i18n "authors" }}
{{if $profile_url}}{{end}} {{$profile.title}} {{if $profile_url}}{{end}} {{- with $profile.pronouns -}} ({{ . }}) {{- end -}}
{{ with $profile.role }}
{{. | markdownify | emojify}}
{{end}} {{ with $profile.bio }}
{{ . | markdownify | emojify }}
{{ end }}
{{ partial "social_links" (dict "Params" (dict "profiles" $profile.links)) }}
{{end}}{{/* End Check for Author Profile */}}