{{ $social := slice "twitter" "github" "instagram" }} {{ range $key, $val := site.Params }} {{ if in $social $key }} {{ $.Scratch.SetInMap "social-map" $key $val }} {{ end }} {{ end }} {{ partial "head.html" . }}