github.com/choria-io/go-choria@v0.28.1-0.20240416190746-b3bf9c7d5a45/docs/themes/hugo-theme-relearn/layouts/partials/pageHelper/taxonomyPages.html (about) 1 {{- $pages := slice }} 2 {{- range .Data.Terms }} 3 {{- $count := 0 }} 4 {{- range .Pages }} 5 {{- $c:=""}}{{/* count pages of term */}} 6 {{- if and .Title .RelPermalink (or (ne (.Scratch.Get "relearnIsHiddenStem") true) (ne .Site.Params.disableTagHiddenPages true) ) }} 7 {{- $count = add $count 1 }} 8 {{- end }} 9 {{- end }} 10 {{- if $count }} 11 {{- $pages = $pages| append (dict "Title" (default (humanize .Page.Data.Term | strings.Title) .Page.Title) "Page" .Page "Count" $count )}} 12 {{- end }} 13 {{- end }} 14 {{- $pages = sort $pages ".Title" }} 15 {{- return $pages }}