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 thePaginate
method.
But in this case, I want the pagination.pagerSize
to overide the default 5
.