{{ define "main" }} {{ if eq .Kind "taxonomy" }} {{/* Index page: /labels/, /milestones/, /categories/. Lists every term. */}}

{{ .Title }}

{{ len .Data.Terms }} {{ .Data.Plural }}

{{ range .Data.Terms.Alphabetical }} {{ end }}
NameCount
{{ .Page.Title }} {{ .Count }}
{{ else }} {{/* Term page: /labels/bug/, /milestones/3.0.0/. Lists pages with this term. */}}

{{ .Title }}

{{ len .Pages }} pages tagged {{ .Title }}

{{ range .Pages }} {{ end }}
TitleLabels
{{ partial "state-badge.html" . }} {{- with .Params.number -}}#{{ . }} {{ end -}} {{- .Title -}} {{ with .Params.labels }} {{ $colors := $.Params.label_colors }} {{ $textColors := $.Params.label_text_colors }} {{ range . }} {{ $color := index $colors . | default "d0d7de" }} {{ $textColor := index $textColors . | default "#1f2328" }} {{ partial "label.html" (dict "name" . "color" $color "text_color" $textColor) }} {{ end }} {{ end }}
{{ end }} {{ end }}