Raw
 1{{ define "main" }}
 2  {{ if eq .Kind "term" }}
 3    {{ partial "taxonomy-term.html" . }}
 4  {{ else }}
 5  <div class="title depth-0"><span class="supt">{{ .Data.Plural }}⁄</span>All</div>
 6  {{ $terms := newScratch }}
 7  {{ range .Data.Terms.Alphabetical }}{{ $terms.Set (.Term | urlize | urls.PathUnescape) . }}{{ end }}
 8  {{ range $label, $term := $terms.Values }}
 9    <span>{{ partial "page-link.html" (dict "page" $term.Page "text" $label) }}({{ $term.Count }})</span>
10  {{ end }}
11  {{ end }}
12{{ end }}