Start building sites …
hugo v0.92.2-CDF6A0D6+extended linux/amd64 BuildDate=2022-02-11T14:17:39Z VendorInfo=gohugoio
Error: Error building site: failed to render pages: render of "section" failed: "/home/razonyang/Projects/razonyang/hugo-theme-bootstrap/layouts/_default/archive.html:46:18": execute of template failed: template: _default/archive.html:46:18: executing "title$htmltemplate_stateRCDATA_elementTitle" at <.Paginate>: error calling Paginate: 'pager size' must be a positive integer
Built in 1539 ms
And then I change {{- $paginator := .Paginate $pages.ByDate.Reverse $size -}} to {{- $paginator := .Paginate $pages.ByDate.Reverse 1 -}} for displaying the value of .Site.Params.archive.paginate:
size: [100]
I have no clue to figure it out. I’d appreciate some help.
I’m trying to define some theme’s parameters. I generated HTML files, and find out some pages don’t retrieve the parameter, the theme’s parameter wasn’t applied by zh-cn and zh-tw language:
zh-cn.params.archive replaces the theme’s params.archive instead of merging, so there is no params.archive.paginate parameter. I’m not sure if it’s a bug.