No matter what I do, I can’t get pagination to list more then 5 posts.
I’ve set the pagination setting in config.toml
and it doesn’t change anything:
paginate = 10
I’ve changed my list.html
layout to specify 10 items and it still produces 5:
{{ range (.Paginator 10).Pages }}
I’ve created a variable to hold a paginator with 10 items and used that for the range
and it still doesn’t work:
{{ $paginator := .Paginator 10 }}
{{ range $paginator.Pages }}
I’ve tried using .Paginate
instead of .Paginator
. None of these things work.
What do I have to do to get 10 posts per page? According to the documentation .Paginator 10
should work but it doesn’t.
$ hugo version
Hugo Static Site Generator v0.21 darwin/amd64 BuildDate: 2017-05-28T14:04:37-07:00