Clicks to next 10 posts

Another newbie question I’m afraid.

I have a template that loads the titles+links to the first 10 posts on the index page. I want a button that then loads the next 10. I’ve looked at pagination, and don’t seem to be able to get anything working.

There must be a simple way to listen for user click - > load more content?

As you mentioned the pagination is exactly what you are looking for. What seems to be the problem here? Maybe your theme does not display the pagination controls at the bottom of the index page.

That could be it. I’ve edited the theme quite a lot since posting this . . .

Is there an example of this functionality in the docs, with the controls displaying? I haven’t been able to find anything.

Some of the themes on the theme website show the pagination controls. For example: http://themes.gohugo.io/theme/bootstrap/

You can also see them in my website at https://parsiya.net (scroll down to the bottom), the theme is on github and pagination is done at: https://github.com/parsiya/Hugo-Octopress/blob/master/layouts/partials/pagination.html.

Thank you! Will have a crack at implementing something similar and see how it goes :slight_smile:

I would have tried pagination but it was ignoring Sections in my case. Although it’s been like a week I came to know about hugo. For pagination

I am using a quick fix

http://jsfiddle.net/cse_tushar/6FzSb/2/