Using collection tag filter to exclude a certain tag doesn't work on index page
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
Research direction
Reproduce the issue with the routes.yaml configuration shown and compare Source's index-page behavior with the Casper theme. Trace how the home-page collection applies the tag exclusion, then verify that portfolio-tagged posts no longer appear on the home page while the portfolio routes still work.
Written by the indexing model from the issue text.
Description
I just modified my routes.yaml to look something like this:
routes:
/portfolio/art/:
controller: channel
filter: tag:portfolio+tag:art
/portfolio/figure-drawing/:
controller: channel
filter: tag:portfolio+tag:figure-drawing
/portfolio/pixel-art/:
controller: channel
filter: tag:portfolio+tag:pixel-art
collections:
/portfolio/:
permalink: /portfolio/{slug}/
filter: primary_tag:portfolio
template: tag
data: tag.portfolio
/:
permalink: /{slug}/
template: index
filter: tag:-portfolio
taxonomies:
tag: /tag/{slug}/
author: /author/{slug}/
But somehow the portfolio tagged posts still show up on the home page. Though interestingly the issue does not occur when using the Casper theme.
- Dominant language
- CSS
- Stars
- 129
- Forks
- 258
- Avg merge
- 2h 57m
- Merged PRs (30d)
- 36
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from TryGhost/Source
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
-
[Feature] Dark Mode Open
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
Difficulty 3/5 1-2 days Newbie friendliness 30/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
clerk/javascript#9852 ·
-
bug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
amponce/archive-movie-browser#165 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
[Block] Latest Posts [Type] Bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
gitbutlerapp/gitbutler#15998 · 1 comment ·