{{ $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 }}