Paginate won't list more than 5

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

You have a problem that does not show in the snippets you post. We need to see the complete project, i.e. a link to a GitHub project or similar, to be able to help you.

A quick stab in the dark; you have more than 5 posts in the section you try to paginate?

I would like to know if OP found a solution to his problem, because I’m facing the same issue here and I tried everything. I have 11 posts but only 10 are showing, no mater what. I want to show 12 per page because otherwise my layout seems broken.