{{- /* A labelled pill for a single-valued classifier. Input: dict "kind" "value" Links to the term page when the classifier is a taxonomy. */ -}} {{- $kind := .kind -}} {{- $value := .value -}} {{- if $value -}} {{- $entry := partial "vocab.html" (dict "taxonomy" $kind "term" $value) -}} {{- $label := $entry.label | default (humanize $value) -}} {{- $class := printf "pill pill--%s-%s" $kind $value -}} {{- with site.GetPage (printf "/%s/%s" $kind $value) -}} {{ $label }} {{- else -}} {{ $label }} {{- end -}} {{- end -}}