{{- /* Links to the term pages of a multi-valued classifier. Input: dict "taxonomy" "terms" "short" */ -}} {{- $taxonomy := .taxonomy -}} {{- $short := .short | default false -}} {{- with .terms -}} {{- range . -}} {{- $entry := partial "vocab.html" (dict "taxonomy" $taxonomy "term" .) -}} {{- $label := $entry.label | default (humanize .) -}} {{- if and $short $entry.short }}{{ $label = $entry.short }}{{ end -}} {{- with site.GetPage (printf "/%s/%s" $taxonomy .) -}} {{ $label }} {{- else -}} {{ $label }} {{- end -}} {{- end -}} {{- end -}}