{{ $social := slice "twitter" "github" "instagram" }} {{ range $social }} {{ if isset site.Params . }} {{ $.Scratch.Add "social-list" (slice .) }} {{ end }} {{ end }} {{ partial "head.html" . }}