Hide posts with a specfic tag on the 'homepage'

I’ve read number of posts about this, and I believe I’m following as described, how I’m not getting it to work.

I have a newsletter called ‘The Weekly’ that I want to send as an email and then only appear on a separate page for the tag “the-weekly”. I’ve also added the tag “hide” so that I can use it in the routes.yaml file.

I have downloaded the routes.yaml file which looks like this:

routes:

collections:
  /:
    permalink: /{slug}/
    template: index
    filter: tag:-[hide]

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

However, I am still seeing all of The Weekly posts on the home page, and now, when I click on any of them, I get a 404.

Any ideas?

Is that source? Source does not respect routing.

3 Likes

Yes tt is Source theme.
:expressionless:

Yep, known problem with the way Source is setup. Consider using a different theme (perhaps Casper?) that respects routing, or it’s a fairly easy fix to edit the theme, if you can load a custom theme (not on Ghost pro’s starter plan).

1 Like

Thank you. I’ve switched out to Headline and this now works perfectly. In fact, the theme suits me even better than Source did.

3 Likes