You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The README for this project has a sample config with paginate = true. If I use this setting, I wind up with a front page that has just one post, and each page has only one post. I tried to turn pagination off by setting it to false, but I got this error:
failed to render pages: render of "home" failed: "/Users/dap/projects/blog-hugo/dap-blog/themes/pixyll/layouts/index.html:12:41": execute of template failed: template: index.html:12:41: executing "index.html" at <.Paginate>: error calling Paginate: 'pager size' must be a positive integer
When I first saw this, I didn't understand it, but I found that if I left the paginate parameter off completely, then I seemed to get no pagination. (That wasn't actually true -- I just didn't have enough posts to fill up a page.)
Anyway, the hugo pagination param is a number, not a boolean. The README should probably either leave this out (using the default) or set it to a value (10 is the default). I think the confusing behavior I saw resulted from "true" being mapped to 1 and "false" being mapped to 0.
The text was updated successfully, but these errors were encountered:
The README for this project has a sample config with
paginate = true
. If I use this setting, I wind up with a front page that has just one post, and each page has only one post. I tried to turn pagination off by setting it tofalse
, but I got this error:When I first saw this, I didn't understand it, but I found that if I left the
paginate
parameter off completely, then I seemed to get no pagination. (That wasn't actually true -- I just didn't have enough posts to fill up a page.)Anyway, the hugo pagination param is a number, not a boolean. The README should probably either leave this out (using the default) or set it to a value (10 is the default). I think the confusing behavior I saw resulted from "true" being mapped to 1 and "false" being mapped to 0.
The text was updated successfully, but these errors were encountered: