# Latest 6 posts on index.hbs

**URL:** <https://forum.ghost.org/t/latest-6-posts-on-index-hbs/23877>\
**Category:** Themes\
**Created:** [June 30, 2021, 8:13am UTC](https://forum.ghost.org/t/latest-6-posts-on-index-hbs/23877 "2021-06-30T08:13:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![leventdev](https://avatars.discourse-cdn.com/v4/letter/l/8491ac/32.png) [@leventdev](https://forum.ghost.org/u/leventdev)\
**Post date:** [June 30, 2021, 8:13am UTC](https://forum.ghost.org/t/latest-6-posts-on-index-hbs/23877/1 "2021-06-30T08:13:35Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![leventdev](https://avatars.discourse-cdn.com/v4/letter/l/8491ac/32.png) [@leventdev](https://forum.ghost.org/u/leventdev)\
**Post date:** [June 30, 2021, 8:16am UTC](https://forum.ghost.org/t/latest-6-posts-on-index-hbs/23877/2 "2021-06-30T08:16:17Z")

</div>

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”

---

<div class="post-metadata">

**Author:** ![Hannah](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/hannah/32/22_2.png) [@Hannah](https://forum.ghost.org/u/Hannah)\
**Post date:** [June 30, 2021, 8:42am UTC](https://forum.ghost.org/t/latest-6-posts-on-index-hbs/23877/3 "2021-06-30T08:42:59Z")

</div>

You actually want to configure your posts per page

> **[Ghost Handlebars Theme Helpers: @config](https://ghost.org/docs/themes/helpers/config/)**
>
> How to access global data properties with @config in your Handlebars theme. Read more about Ghost themes ⚡️

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.

---

<div class="post-metadata">

**Author:** ![leventdev](https://avatars.discourse-cdn.com/v4/letter/l/8491ac/32.png) [@leventdev](https://forum.ghost.org/u/leventdev)\
**Post date:** [June 30, 2021, 9:39am UTC](https://forum.ghost.org/t/latest-6-posts-on-index-hbs/23877/4 "2021-06-30T09:39:05Z")

</div>

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.
