{{ $pages := .Site.RegularPages }} {{ if not (eq (len $.Site.Taxonomies.tags) 0) }} {{ $lens := slice }} {{ range $.Site.Taxonomies.tags }} {{ $lens = $lens | append .Count }} {{ end }} {{ $lens = $lens | uniq | sort }} {{ $max := index $lens (sub (len $lens) 1) }} {{ $min := index $lens 0 }} {{ $spread := sub $max $min }} {{ if eq $spread 0 }} {{ $spread = 1 }} {{ end }}
Show All {{ len $pages }} {{ range .Site.Taxonomies.tags.ByCount }} {{ .Page.Title }} {{ .Count }} {{ end }}
{{ end }}