List all post on different route

Hi there,

I have a very simple question I tried a lot but it didn’t work out yet.

All I want ist to list all blog posts on the route /blog.
What i did:

  1. Edited the index page to:
<main id="site-main" class="site-main outer">
    <div class="inner posts">

        <div class="post-feed">
            {{#foreach posts}}

                {{!-- The tag below includes the markup for each post - partials/post-card.hbs --}}
                {{> "post-card"}}


  1. create a page with slug /blog (not sure if I need, bu neither solution worked out
  2. Edited the routing.yml:
     template: index
     data: page.index

I believe from what I have read that this all works, but it does not. So please what am I missing.

Can you try removing the {{#post}} wrapper around everything? I don’t think the post context exists on an index page so that entire block might be skipped

Thanks but ist does not make a difference. Basically I see the the blog page with the headline I added. The index page does not seem to be touched

I solved it. In order to show the posts on different slug I needed to change the collection to /blog/

    permalink: /{slug}/
    template: index