curtiscde / hugo-theme-massively

Massively theme for Hugo static site generator
https://hugo-theme-massively.netlify.app
Other
155 stars 138 forks source link

Paginate: 'pager size' must be a positive integer #26

Closed utnas closed 6 years ago

utnas commented 6 years ago

Hild sites returns avery time the same error: Building sites … ERROR 2018/04/12 22:03:45 Error while rendering "home" in "": template: index.html:15:21: executing "index.html" at <.Paginate>: error calling Paginate: 'pager size' must be a positive integer

pierrepln commented 6 years ago

Hi @utnas , I solved the same error right after installing the theme. The reason I had this error was because I forgot to edit the config.toml file at the root of my project.

It requires

[params.posts]
    foldername = "post"
    pagesize = "6"
    featuredpost = "true"

I hope this helps

curtiscde commented 6 years ago

Thanks for raising the issue @utnas - this should be configured to be optional ideally to make the theme more portable.