Calling either .Paginate or .Paginator paginates a page collection, the result of which is cached. This is covered in the documentation.
- https://gohugo.io/templates/pagination
- https://gohugo.io/methods/page/paginate/
- https://gohugo.io/methods/page/paginator/
If you need access to the .Paginator early in the template (e.g., within the head element), read this:
https://discourse.gohugo.io/t/pagination-using-pager-values-within-the-head-element/50340
