terms.html (387B)
1 {{- /* 2 For a given taxonomy, renders a list of terms assigned to the page. 3 4 @context {page} page The current page. 5 @context {string} taxonomy The taxonomy. 6 7 @example: {{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }} 8 */}} 9 {{- $page := .page }} 10 {{- $taxonomy := .taxonomy }} 11 {{- with $page.GetTerms $taxonomy }} 12 {{- range . -}} 13 {{ partial "tag.html" }} 14 {{- end -}} 15 {{- end }}