{{ range . -}} {{ $name := .name }} {{ $path := printf "%s" $name | printf "%s%s" "brands/" }} {{ partial "fontawesome.html" $path }} {{- end -}}