{{ if $.Param "enableBio" }} {{ $src := "" }} {{ if site.Params.useGravatar }} {{ $src = printf "https://s.gravatar.com/avatar/%s?s=200" (md5 .Site.Params.email) }} {{ else }} {{ if (fileExists "static/images/whoami/avatar.png") }} {{ else if (fileExists "static/images/whoami/avatar.jpg") }} {{ else if (fileExists "static/images/whoami/avatar.svg") }} {{ else }} {{ end }} {{ end }} {{ .Site.Params.myname }} {{ .Site.Params.whoami }} {{ if .Site.Params.organization }} {{ partial "svgs/etc/people.svg" (dict "width" 20 "height" 20) }} {{ .Site.Params.organization }} {{ end }} {{ if .Site.Params.organization }} {{ partial "svgs/etc/location.svg" (dict "width" 20 "height" 20) }} {{ .Site.Params.location }} {{ end }} {{ if .Site.Params.email }} {{ partial "svgs/social/email.svg" (dict "width" 20 "height" 20) }} {{ .Site.Params.email }} {{ end }} {{ if .Site.Params.link }} {{ partial "svgs/etc/link.svg" (dict "width" 20 "height" 20) }} {{ .Site.Params.link }} {{ end }} {{ range $name, $path := $.Param "socialOptions" }} {{ if (and $path (ne $name "email")) }} {{ partial (print "svgs/social/" $name ".svg") (dict "width" 25 "height" 25) }} {{ end }} {{ end }}