{{- $style := default "pills" .style }} {{- $limit := default 10 .limit }} {{- $count := default true .count }}
{{- $first := true }} {{- range $name, $taxonomy := site.Taxonomies }} {{- if not $taxonomy }} {{- continue }} {{- end }}
{{- $idx := 0 }} {{- range $termName, $term := $taxonomy.ByCount }} {{- if eq $idx $limit }} {{- break }} {{- end }} {{- $term.Page.Title -}} {{- if $count }} {{- printf " (%d)" $term.Count -}} {{- end }} {{- $idx = add $idx 1 }} {{- end }}
{{- $first = false }} {{- end }}