{{- $profile := .Site.Params.home.profile -}}
{{- $avatar := $profile.avatarURL -}} {{- if $profile.gravatarEmail -}} {{- $gravatar := .Site.Params.gravatar -}} {{- /* TODO: The parameter `home.profile.gravatarSite` will be deleted in v0.2.15 */ -}} {{- with $gravatar -}} {{- $avatar = printf "https://%v/avatar/%v?s=240&d=%v" ($profile.gravatarSite | default .Host | default "www.gravatar.com") (md5 $profile.gravatarEmail) (.Style | default "mp") -}} {{- end -}} {{- end -}} {{- if $avatar -}}
{{- $menus := $.Site.Menus.main | default slice -}} {{- with index $menus 0 -}} {{- $url := .URL | relLangURL -}} {{- with .Page -}} {{- $url = .RelPermalink -}} {{- end -}} {{- dict "Src" $avatar "Alt" $.Site.Author.name | partial "plugin/image.html" -}} {{- else -}} {{- dict "Src" $avatar "Alt" $.Site.Author.name | partial "plugin/image.html" -}} {{- end -}}
{{- end -}} {{- with $profile.title -}}

{{- . | safeHTML -}}

{{- end -}} {{- with $profile.subtitle -}}

{{- if $profile.typeit -}} {{- $id := dict "Content" . "Scratch" $.Scratch "Id" "typeit-profile-subtitle" | partial "function/id.html" -}}
{{- dict $id (slice $id) | dict "typeitMap" | merge ($.Scratch.Get "this") | $.Scratch.Set "this" -}} {{- else -}} {{- . -}} {{- end -}}

{{- end -}} {{- if $profile.social -}} {{- end -}} {{- with $profile.disclaimer -}}

{{- . | safeHTML -}}

{{- end -}}