{{- $cats := .Page.Params.categories }} {{- $symbols := dict "news" "Article published" "presentation" "Presentation given" "podcast" "Podcast released" }} {{- $selection := "" }} {{- range $cat := $cats }} {{- with index $symbols $cat }} {{- $selection = . }} {{- end }} {{- end }} {{- if not $selection }} {{- $selection = "Blogged" }} {{- end }} {{- return $selection }}