{{- $avatar := .Site.Params.home.profile.avatarURL -}}
{{- with .Site.Params.home.profile.gravatarEmail -}}
{{- $avatar = md5 . | printf "https://www.gravatar.com/avatar/%s?s=240&d=mp" -}}
{{- end -}}
{{- with $avatar -}}
{{- end -}}
{{- with .Site.Params.home.profile.subtitle -}}
{{- if $.Site.Params.home.profile.typeit -}}
{{- $id := md5 . | printf "tp-%s" -}}
{{- . | safeHTML -}}
{{- with $.Scratch.Get "typeitMap" -}}
{{- $.Scratch.Set "typeitMap" (dict $id (slice $id) | merge .) -}}
{{- else -}}
{{- $.Scratch.Set "typeitMap" (dict $id (slice $id)) -}}
{{- end -}}
{{- else -}}
{{- . | safeHTML -}}
{{- end -}}
{{- end -}}
{{- if .Site.Params.home.profile.social -}}
{{- partial "home/social.html" . -}}
{{- end -}}