Hiding posts from the homepage

Yeah, it’s pretty easy to achieve! Just go to Ghost Admin > Labs and download your routes.yaml file from Routes.

There, you’ll find something like and you add your podcast collection in:

collections:
  /:
    permalink: /{slug}/
    filter: tag:-podcast
    template: index
  /podcast/: 
    permalink: /podcast/
    filter: tag:podcast
    template: podcasts

This creates a new collection which you can think as a collection of posts where your podcasts will be. It tells the homepage collection to not include any posts tagged with podcast, and for yoursite.com/podcast/ to only include all posts tagged with the tag podcast.

It will also use podcasts.hbs in your theme as the template for the /podcast/ page, so you might want to add that in.

https://ghost.org/tutorials/creating-content-collections/

6 Likes