{{ define "main" }} {{- $plural := .Data.Plural }} {{- $items := slice }} {{- $ranked := false }} {{- range .Data.Terms.Alphabetical }} {{- $entry := partial "vocab.html" (dict "taxonomy" $plural "term" .Name) }} {{- if $entry.rank }}{{ $ranked = true }}{{ end }} {{- $items = $items | append (dict "name" .Name "page" .Page "count" .Count "label" ($entry.label | default .Page.Title) "description" ($entry.description | default "") "version" ($entry.version | default "") "rank" ($entry.rank | default 0)) }} {{- end }} {{- if $ranked }}{{ $items = sort $items "rank" "desc" }}{{ end }}
Browse
{{ . }}
{{- end }}{{ . }}
{{ end }} {{- with .description }}{{ . }}
{{ end }}