Hugo Sort Tags by Count
I wanted to sort the tags in the “Tags” page by the count of child pages. This can be achieved by creating a terms.html
template page. From there the data can be fetched nicely:
{{ range .Data.Terms.ByCount }}
{{ partial "widgets/tag.html" (dict "tag" .Page.Title "count" .Count)}}
{{ end }}