coco
1
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}/
RyanF
2
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 channels
→ Ghost Themes - Dynamic URLs & Routing
coco
3
By removing that would it mess up my podcast RSS feed?
RyanF
4
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}/
coco
5
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
RyanF
6
It’s a good idea. I’ll put it on my list.
1 Like