Pagination within a single non-home page

I am getting

layouts/blog/authors/single.html:40:18": execute of template failed: template: blog/authors/single.html:40:18: executing "main" at <.Paginate>: error calling Paginate: pagination not supported for this page

while trying to include paginated blog posts written by an author within that author’s single page via

{{ $filterByAuthor := where site.RegularPages "Params.author" "==" .Title }}
{{ range (.Paginate ($filterByAuthor)).Pages }}

As discussed at Pagination not supported , it’s not possible to apply pagination while rendering a single page.

Considering that this page is not the home page, how would you go about implementing this?

Typically you or a theme author would implement an “authors” feature using the taxonomy system, where each author has their own term page.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.