Routes not showing podcast feed on main page

What changes can I make to my routes.yaml so my podcast posts also show up with the rest of my content?

routes:
/podcast/rss/:
template: podcast/rss
content_type: text/xml

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

taxonomies:
tag: /tag/{slug}/
author: /author/{slug}/

Collections are exclusive, which means that posts that show up in one collection won’t show up in any other.

If you remove the /podcast/ collection, then those posts will show up again. Your podcasts will already live on /tag/podcast/.

If you still want to create a custom route for your podcasts, then you’ll want to use channelsGhost Themes - Dynamic URLs & Routing

By removing that would it mess up my podcast RSS feed?

Right. You can configure the podcast route as a channel, like this:

routes:
  /podcast/:
    permalink: /podcast/{slug}/
    filter: tag:podcast
    controller: channel
  /podcast/rss/:
    template: podcast/rss
    content_type: text/xml
    
collections:
  /:
    permalink: /{slug}/
    template: index
    
taxonomies:taxonomies:
  tag: /tag/{slug}/
  author: /author/{slug}/

Dude, thank you so much! Can this script make its way into Ghost.org documentation for setting up podcast feeds so others can use it?

1 Like

It’s a good idea. I’ll put it on my list.

1 Like