Is pagination.pagerSize exposed to templates?

For example, can it be used instead of the Params below?

{{ $paginator := (.Paginate (where .Site.RegularPages "Type" "in" .Site.Params.mainSections).ByDate.Reverse (.Site.Params.pagerSizeIndex | default 5))}}

Because the Paginate docs say

By default, the number of elements on each pager is determined by your site configuration. The default is 10. Override that value by providing a second argument, an integer, when calling the Paginate method.

But in this case, I want the pagination.pagerSize to overide the default 5.

No, it is not.

You could create something under params and use that instead.

1 Like

I thought so. Thanks for the clarification.

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