In the site configuration it is possible to set the paginate field to set the pagination chunk size as documented on Pagination | Hugo.
What I however do not find any documentation or thread about is how to get this value in a template. I.e. I want to do something along the lines of
{{ if (gt .Site.paginate 5) }}
# some html
{{ end }}
to conditionally display something if the paginate configuration is greater than 5.
I understand that the above snipped does not work since paginate is not part of the site variables but is there any other way to access the field?
My workaround so far is to duplicate the paginate field under params and access it through .Site.Params.paginate but it would be nice if that was not needed.