{{- $profile := .Site.Params.home.profile -}}
{{- $avatar := $profile.avatarURL -}} {{- $gravatar := .Site.Params.gravatar -}} {{- if $gravatar.enable | and $profile.gravatarEmail -}} {{- with $gravatar -}} {{- $avatar = printf "https://%v/avatar/%v?s=240&d=%v" (path.Clean .Host | default "www.gravatar.com") (md5 $profile.gravatarEmail) (.Style | default "mp") -}} {{- end -}} {{- end -}} {{- if $avatar -}}
{{- $menus := $.Site.Menus.main | default slice -}} {{- $avatarMenuIndex := 0 -}} {{- if $profile.avatarMenu -}} {{- range $index, $menu := $menus -}} {{- if eq $menu.Identifier $profile.avatarMenu -}} {{- $avatarMenuIndex = $index -}} {{- end -}} {{- end -}} {{- end -}} {{- with index $menus $avatarMenuIndex -}} {{- $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 -}} {{- /* Custom Content */ -}} {{- partial (.Scratch.Get "customFilePath").profile . -}}