{{ if $.Param "enableBio" }}

{{ $src := "" }} {{ if site.Params.useGravatar }} {{ $src = printf "https://s.gravatar.com/avatar/%s?s=200" (md5 .Site.Params.email) }} {{ if .Site.Params.myname }}{{ .Site.Params.myname }}{{ else }}Avatar{{ end }} {{ else }} {{ if (fileExists "static/images/whoami/avatar.png") }} {{ if .Site.Params.myname }}{{ .Site.Params.myname }}{{ else }}Avatar{{ end }} {{ else if (fileExists "static/images/whoami/avatar.jpg") }} {{ if .Site.Params.myname }}{{ .Site.Params.myname }}{{ else }}Avatar{{ end }} {{ else if (fileExists "static/images/whoami/avatar.svg") }} {{ if .Site.Params.myname }}{{ .Site.Params.myname }}{{ else }}Avatar{{ end }} {{ else }} {{ if .Site.Params.myname }}{{ .Site.Params.myname }}{{ else }}Avatar{{ end }} {{ 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 }}
{{ end }}