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:
- Edited the index page to:
{{#post}}
<main id="site-main" class="site-main outer">
Test
<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"}}
{{/foreach}}
</div>
</div>
</main>
{{/post}}
- create a page with slug /blog (not sure if I need, bu neither solution worked out
- Edited the routing.yml:
routes:
/blog/:
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.