{{ if $.Param "enableWhoami" }}

{{ $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 .Site.Params.myname }}{{ .Site.Params.myname }}{{ else }}Avatar{{ end }} {{ end }} {{ end }}
{{ .Site.Params.myname }}
{{ .Site.Params.whoami }}

{{ end }}