github.com/neohugo/neohugo@v0.123.8/create/skeletons/theme/layouts/partials/terms.html (about) 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 taxonony. 6 7 @example: {{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }} 8 */}} 9 10 {{- $page := .page }} 11 {{- $taxonomy := .taxonomy }} 12 13 {{- with $page.GetTerms $taxonomy }} 14 {{- $label := (index . 0).Parent.LinkTitle }} 15 <div> 16 <div>{{ $label }}:</div> 17 <ul> 18 {{- range . }} 19 <li><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></li> 20 {{- end }} 21 </ul> 22 </div> 23 {{- end }}