# Creating a Page with all blog posts

**URL:** <https://forum.ghost.org/t/creating-a-page-with-all-blog-posts/19575>\
**Category:** Developer help\
**Created:** [January 19, 2021, 9:08am UTC](https://forum.ghost.org/t/creating-a-page-with-all-blog-posts/19575 "2021-01-19T09:08:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![iamarup](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/iamarup/32/11280_2.png) [@iamarup](https://forum.ghost.org/u/iamarup)\
**Post date:** [January 19, 2021, 9:08am UTC](https://forum.ghost.org/t/creating-a-page-with-all-blog-posts/19575/1 "2021-01-19T09:08:57Z")

</div>

Hello,

I am running a local installation of Ghost inside Windows using WSL (Debian). How can I add a page in my Ghost installation which will display all of my blog posts/articles? That means:

The Name of the page will be “Articles or Posts” and when I go to that page it will show all of my blog posts. I know how to add page, so I need the code snippet to show all posts/articles on that page.

Any kind of help is appreciated.

Ghost Version: 3.40.5  
Platform: WSL (Debian) on Windows 10 build 20H2  
Node: 12.10.1

---

<div class="post-metadata">

**Author:** ![ROY](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/roy/32/36059_2.png) [@ROY](https://forum.ghost.org/u/ROY)\
**Post date:** [March 8, 2024, 12:12am UTC](https://forum.ghost.org/t/creating-a-page-with-all-blog-posts/19575/2 "2024-03-08T00:12:27Z")

</div>

I’m wondering if there’s any update on this?

---

<div class="post-metadata">

**Author:** ![Cathy\_Sarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/cathy_sarisky/32/25750_2.png) [@Cathy\_Sarisky](https://forum.ghost.org/u/Cathy_Sarisky)\
**Post date:** [March 8, 2024, 12:54pm UTC](https://forum.ghost.org/t/creating-a-page-with-all-blog-posts/19575/3 "2024-03-08T12:54:31Z")

</div>

There’s no snippet that does this.

It depends on the theme, but this can probably be accomplished with routing.

---

<div class="post-metadata">

**Author:** ![hsarji](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/hsarji/32/16754_2.png) [@hsarji](https://forum.ghost.org/u/hsarji)\
**Post date:** [March 8, 2024, 7:14pm UTC](https://forum.ghost.org/t/creating-a-page-with-all-blog-posts/19575/4 "2024-03-08T19:14:21Z")

</div>

It is possible. See [Wills, Trusts, Estates: Blog](https://www.willstrustsestates.info/blog/) My blog post page is not my landing page.

I’m using a theme I purchased: [Newsportal - News and Magazine Ghost Blog Theme](https://forum.ghost.org/t/newsportal-news-and-magazine-ghost-blog-theme/16132)

The theme has a file called `blog.hbs` that has a lot of theme-specific HTML. The relevant for the blog post page uses Handlebars code that starts like this:

```auto
{{#get "posts" limit="all"}}
                {{#foreach posts}}

```

So, you’re getting all of the posts and then you’re looping through them to do something with them. The theme authors created a card for each post.

The routes then has a collection for this page:

```auto
collections:
  /blog/:
    permalink: /{slug}/
    template: blog

```

I think this post is helpful: [How to create Post Archive page in your Ghost Theme? – Themeix](https://themeix.com/how-to-create-post-archive-page-in-your-ghost-theme/) They’re using routes instead of collections. (I’ve read about the differences between routes and collections but I still haven’t fully wrapped my mind around them.)

I hope this information is useful.

---

<div class="post-metadata">

**Author:** ![electronthemes](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/electronthemes/32/17842_2.png) [@electronthemes](https://forum.ghost.org/u/electronthemes)\
**Post date:** [March 9, 2024, 6:21am UTC](https://forum.ghost.org/t/creating-a-page-with-all-blog-posts/19575/5 "2024-03-09T06:21:21Z")

</div>

Thank you @hsarji for your reply.

I can add extra solution here.

If you want to add Load more button or pagination, you need to use `{{#foreach posts}}{{/foreach}}`

```auto
{{#foreach posts}}

{{/foreach}}
{{pagination}}

```
