Creating a Page with all blog posts

It is possible. See Wills, Trusts, Estates: Blog My blog post page is not my landing page.

I’m using a theme I purchased: Newsportal - News and Magazine Ghost Blog Theme

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:

{{#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:

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

I think this post is helpful: How to create Post Archive page in your Ghost Theme? – Themeix 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.

2 Likes