{{ $.Scratch.Delete "social_list" }} {{ $.Scratch.Delete "avatar_url" }} {{ $socialParams := slice "twitter" "github" "instagram" "rss" }} {{ range $socialParams }} {{ if isset site.Params . }} {{ $.Scratch.Add "social_list" (slice .) }} {{ end }} {{ end }} {{ if site.Params.avatar }} {{ if in site.Params.avatar "http" }} {{ $.Scratch.Set "avatar_url" site.Params.avatar }} {{ else }} {{ $md5 := (md5 site.Params.avatar) }} {{ $url := print "https://www.gravatar.com/avatar/" $md5 "?s=160&d=identicon" }} {{ $.Scratch.Set "avatar_url" $url }} {{ end }} {{ end }} {{ partial "head.html" . }}
{{ partial "header.html" . }}