How use a different home template

I’m building a theme…

I want to have a separate home.hbs template which is working fine but I also want a listing page for posts that uses the index.hbs template?

I’ve created the home template but I can’t find out how to create another page that just has a most recent post list?

Can anyone help?


Hi @kingtucks,

You should be able to do that by modifying the routes.yaml file:

  /: home

    permalink: /{slug}/
    template: index

This should make the / route render your home.hbs and use the index.hbs for the /posts/ route.

1 Like