Hiding posts from the homepage

Is there any way to do this?

Specifically, I want to create an index of podcast shownotes, which don’t appear on my main page.

1. How do I hide/not include posts from the main page?
(Is creating a ‘page’ for each shownote, rather than a ‘post’ the easiest way?)

2. Ideally, I’d like shownotes to be linked to a /podcast page, e.g.

infclub.net/podcast/episode-1
infclub.net/podcast/episode-2

Is there an easy way to do this? (I’m a Ghost newbie and a non-developer)

Thanks :slight_smile:

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

Thanks, @chenningg, really appreciate it. This doesn’t look too complicated, so I may give this a go. Either that, or I’ll just add a #podcast category to my content and simply tag the relevant posts that way. Thx again :slight_smile:

2 Likes

Just a note that I had to add /{slug}/ to the permalink line to make it work, becoming:

permalink: /podcast/{slug}/

2 Likes