Paginate pages inside the CurrentSection

In single.html I can range over the pages of a the CurrentSection like this:

{{ $sectionPages := (where $.CurrentSection.Pages ".Params.options.unlisted" false) }} 
{{ range ( $sectionPages) }}

But if I try to include them in a .Paginate call, it returns nil. What am I missing here?

This feature is currently only supported on homepage and list pages

Yeah, you probably will have to resort to .Prev and .Next functions here…

well… that’s one hour I’m not getting back.

Guess the best thing to do is output all the pages and paginate with JS.

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