{{range $name, $taxonomy := .Site.Taxonomies.tags}} {{ $cnt := .Count }} {{ with $.Site.GetPage (printf "/tags/%s" $name) }} {{ $firstChar := substr $name 0 1 | upper }} {{ $curLetter := $.Scratch.Get "curLetter" }} {{ if ne $firstChar $curLetter }} {{ if ne $curLetter "" }} {{ end }} {{ $.Scratch.Set "curLetter" $firstChar }} {{ $firstChar }} {{ end }} {{ if gt $cnt $offset }} {{.Title}} ({{$cnt}}) {{ end }} {{end}} {{end}}