Latest 6 posts on index.hbs

Hi there,

I’m making a theme, but I would like only the last 6 posts to show up. I assume it can be done with handlebars. Any idea how?

Nevermind. After looking for half an hour and not finding anything, not 3 minutes after posting this, i found that I just need to add limit=“6”

You actually want to configure your posts per page

As the default is 15, if you use limit you will show the first 6 posts on the first page, and then posts 16-30 on page 2, meaning your theme will hide 9 posts.

I actually only need 6, and not 6/page, since we want to show the latest 6 on the index page, and the rest can be found under different categories.