I’ve been tearing my hair out for days trying to create a custom routes.yaml file for the official Ghost Episode theme that will allow me to have posts tagged “podcast” appear on the main page and posts tag “blog” appear at /blog.
The following code works with EVERY other free ghost theme I’ve tested, but not Episode. Episode always displays all posts on every page, regardless of how they’re tagged.
routes:
collections:
/:
permalink: /{slug}/
template: index
filter: tag:-blog
/blog/:
permalink: /blog/{slug}/
template: blog
filter: tag:blog
data: tag.blog
taxonomies:
tag: /tag/{slug}/
author: /author/{slug}/
This possibly seems to be happening because Episode doesn’t seem to even use standard handlebars elements like “getposts” but I’m not entirely sure.
What I’m trying to do is use Episode as-is, except to have the main page display only posts without the tag “blog”, and then to have a separate blog page that displays only posts tagged blog.
Can anyone help?