I’d like to have in my home page a fixed number (in the example given, 6) of posts I’ve committed to my website. To do this and in the same time ignore any possible draft, I’ve used this following piece of code since 0.63 version.
{{ range where (.Paginator 6).Pages ".Draft" false }}
....
{{ end }}
In the compilation, it seems Paginator totally ignore the number 6 and prints only four posts. I’ve read that paginator function might be deprecated but I never received any warning about it. I have tried to edit the number, but it seems it does not affect anything.
I’ve ran my website using the latest version of hugo at the time of writing and my page only had 4 posts, not six as I wanted.
It’s a custom basic theme (the piece of code is taken from theme/my/index.html) which I can not release due to NDA filled for my organization. No particular or relevant issues is being showed using --verbose flag.