{{ if .Site.Author.gravataremail }} {{ .Scratch.Set "authorPicture" (printf "//www.gravatar.com/avatar/%s" (urlize (md5 (.Site.Author.gravataremail )))) }} {{ else if .Site.Author.picture }} {{ .Scratch.Set "authorPicture" (absURL .Site.Author.picture) }} {{ end }}