How to properly filter hash-tag

I’m looking the method to filter out a hash-tag (hidden one) on index.hbs file.

My usecase is to keeping a specific collection outside the general one.

Tried with this code on routes.yaml but it didn’t work:

routes:
  /:
    controller: channel
    template: index

collections:
  /music/:
    permalink: /music/{slug}/
    template: music
    filter: tag:hash-music
  /:
    permalink: /{slug}/
    template: index
    filter: tag:-hash-music

Tried with some variants on the last line like tag:-[hash-music] or tags:-[hash-music] and searched the forum and Github as well.

I’m probably missing something? Any advice or simple workaround is possible?

You have both a route and a collection at /. That’s your problem. Remove the route and it should work.

2 Likes