{{- $cats := .Page.Params.categories }} {{- $symbols := dict "article" "🗞️" "presentation" "🎤" "podcast" "🎧" }} {{- $icon := "" }} {{- $title := "" }} {{- range $cat := $cats }} {{- with index $symbols $cat }} {{- $icon = . }} {{- $title = $cat | humanize }} {{- end }} {{- end }} {{- with $icon }} {{ $icon }}   {{- end -}}