{{ if $.Param "enableBio" }} {{ if ($.Param "enableBioImage" | default true) }} {{ $src := "" }} {{ if site.Params.useGravatar }} {{ $src = printf "https://s.gravatar.com/avatar/%s?s=200" (md5 ($.Param "email")) }} {{ else }} {{ if $.Param "bioImageUrl" }} {{ 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 }} {{ end }} {{ $.Param "myname" }} {{ $.Param "whoami" }} {{ if $.Param "organization" }} {{ partial "svgs/etc/people.svg" (dict "width" 20 "height" 20) }} {{ $.Param "organization" }} {{ end }} {{ if $.Param "location" }} {{ partial "svgs/etc/location.svg" (dict "width" 20 "height" 20) }} {{ $.Param "location" }} {{ end }} {{ if $.Param "email" }} {{ partial "svgs/social/email.svg" (dict "width" 20 "height" 20) }} {{ $.Param "email" }} {{ end }} {{ if $.Param "link" }} {{ partial "svgs/etc/link.svg" (dict "width" 20 "height" 20) }} {{ $.Param "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 }}