Removing Specific Tag on Homepage, Aspire Theme

Hi. I installed the “Krabi” theme from Aspire. I’m not a developer, but did make some minor changes to the code per the theme creator’s instructions. But I’m trying to get a specific Tag to NOT show up on the homepage and don’t know why it isn’t working. Below is the code in routes.yaml, and “one-pagers” is the Tag. Any help would be amazing.

routes:
/:
controller: channel
filter: tags:-[one-pagers]

collections:
/:
permalink: /{slug}/
template: index

Hello @jmfisher1010 ,

Please update your routes.yaml to:

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

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

If you are going to use the ‘one-pagers’ tag for internal purpose only, then I suggest to use ‘#one-pagers’ instead. Internal tags (tags prefixed with hash ‘#’) are not displayed in your Tags archive or other places in the theme where you pull tags with the get helper.

For ‘#one-pagers’, the routes.yaml will look like:

collections:
  /:
    permalink: /{slug}/
    template: index
    filter: tag:-[hash-one-pagers]

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

I hope this helps.

Hi themeupstudio, thanks a lot for the reply. It was user error on my end. When I uploaded the revised code, I didn’t realize the “routes.yaml” file had to be uploaded separately. And the “one-pagers” tag is being used as a regular tag.