Pagination tags with count

Hi everyone,
I am quite new to Hugo, so I apologize in advance if I am going to ask you something that has already been asked.

I managed to sort and paginate my tags in a list as follow;

{{- range $pages.PageGroups -}}                
                {{- range .Pages -}}               
                        <a href="{{ .RelPermalink }}" class="archive-item-link">
                            {{- .Title -}}
                        </a>                                 
                {{- end -}}
                {{- end -}}                            
        {{- partial "paginator.html" . -}} 

I am also trying to add the number of occurrences. I can do that with:

      {{- range $.Site.Taxonomies.tags.ByCount -}}
       <a href="{{ .Page.RelPermalink }}">{{ .Page.Title }} (<b>{{ .Count }}</b>)</a>
  {{- end -}}
{{- partial "paginator.html" . -}} 

but the latter will not paginate. Do know know/have any reference for doing that?

Thanks in advance for your time and help.
Emiliano

Taxonomies are an MAP, not a page list … in TERMS template

But you can paginate the lists per TAG . in LIST template

<article>
	<h2 class=dn>{{ .Title }}</h2>
	<div class=liste>
		{{ $paginator := .Paginate .Data.Pages 40}} 
		{{ range $paginator.Pages -}}
			{{ .Render "summary" }}
		{{- end }}
	</div>
	{{ partial "pagination" . }}
</article>

Hope this helps

Hi ju52,
thank you for the feedback, what I am trying to do is to add the tags ad a list with pagination and the number of occurrences.
Eg.
page1:
Tag1 ( number of occurrences)
Tag2 ( number of occurrences)
Tag3 ( number of occurrences)
page2:
Tag4 ( number of occurrences)
Tag5 ( number of occurrences)
Tag6 ( number of occurrences)
pageN:
TagN ( number of occurrences)

IMHO

.Site.Taxonomies is not a page list, pagination does not work for it.

You can only (??) create a tags section with different content pages and set a tag range in frontmatter

tag from “A” to “H” etc OR something like

{{ range first 20 (after 40 .SIte.Taxonomies.tags ) }}

where the 20 and 40 are parameters from frontmatter

I’ll give it a try then.

Thank you for the tip.