{{- /* For a given taxonomy, renders a comma-separated list of terms assigned to the page. @context {string} taxonomy The taxonomy. @context {page} page The current page. @example: {{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }} */}} {{- $taxonomy := .taxonomy }} {{- $page := .page }} {{- with $page.GetTerms $taxonomy -}} {{- range $index, $term := . -}} {{- if $index }}, {{ end -}} {{ .LinkTitle }} {{- end -}} {{- end -}}