{{ define "main" }} {{ if eq .Kind "taxonomy" }} {{/* Index page: /labels/, /milestones/, /categories/. Lists every term. */}}
{{ len .Data.Terms }} {{ .Data.Plural }}
| Name | Count |
|---|---|
| {{ .Page.Title }} | {{ .Count }} |
{{ len .Pages }} pages tagged {{ .Title }}
| Title | Labels | |
|---|---|---|
| {{ 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 }} |