# Hiding a tag from the homepage and showing it in a dedicated page

**URL:** <https://forum.ghost.org/t/hiding-a-tag-from-the-homepage-and-showing-it-in-a-dedicated-page/48693>\
**Category:** Developer help\
**Created:** [July 9, 2024, 6:01am UTC](https://forum.ghost.org/t/hiding-a-tag-from-the-homepage-and-showing-it-in-a-dedicated-page/48693 "2024-07-09T06:01:33Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnnyd](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/johnnyd/32/31168_2.png) [@johnnyd](https://forum.ghost.org/u/johnnyd)\
**Post date:** [July 9, 2024, 6:01am UTC](https://forum.ghost.org/t/hiding-a-tag-from-the-homepage-and-showing-it-in-a-dedicated-page/48693/1 "2024-07-09T06:01:33Z")

</div>

Hi. According to the official routing [docs](https://ghost.org/docs/themes/routing/), and according to all the posts i’m seeing on this forum, it should be possible to hide posts from a specific tag from the blog homepage, and instead showing those posts in a different page.

For example, if I want to hide posts with the tag `side-projects` from my HP, and show them a different page like `/side-projects/`, then it should be done like this:

```auto
routes:

collections:
  /side-projects/:
    permalink: /side-projects/{slug}/
    template: tag
    filter: tag:side-projects
    data: tag.side-projects
  /:
    permalink: /{slug}/
    template: index
    filter: tag:-side-projects

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

```

This works for the most part but crucially the posts tagged with `side-projects` still show up in the homepage, which is a deal-breaker.

I have tested this both with my own live blog and with a fresh Ghost install working locally (version `5.87.1`).

Any advice will be very appreciated 🙏

---

<div class="post-metadata">

**Author:** ![Cathy\_Sarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/cathy_sarisky/32/25750_2.png) [@Cathy\_Sarisky](https://forum.ghost.org/u/Cathy_Sarisky)\
**Post date:** [July 9, 2024, 9:58am UTC](https://forum.ghost.org/t/hiding-a-tag-from-the-homepage-and-showing-it-in-a-dedicated-page/48693/2 "2024-07-09T09:58:23Z")

</div>

What you have /should/ generally work, but some themes ignore routing on the homepage – the problem is that they use a #get request to get the homepage content, and #get ignores routing. What theme is this?

The good news if you can edit the theme is that you can fix it! You’ll just need to add (or edit) a filter parameter on that misbehaving #get request.

---

<div class="post-metadata">

**Author:** ![johnnyd](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/johnnyd/32/31168_2.png) [@johnnyd](https://forum.ghost.org/u/johnnyd)\
**Post date:** [July 9, 2024, 11:07am UTC](https://forum.ghost.org/t/hiding-a-tag-from-the-homepage-and-showing-it-in-a-dedicated-page/48693/3 "2024-07-09T11:07:31Z")

</div>

Interesting. Thank you for that. I’m using the default [source](https://github.com/TryGhost/Source/) theme.  
Is there a guide somewhere on how to tweak this #get request?

Thanks again.

---

<div class="post-metadata">

**Author:** ![Cathy\_Sarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/cathy_sarisky/32/25750_2.png) [@Cathy\_Sarisky](https://forum.ghost.org/u/Cathy_Sarisky)\
**Post date:** [July 9, 2024, 12:18pm UTC](https://forum.ghost.org/t/hiding-a-tag-from-the-homepage-and-showing-it-in-a-dedicated-page/48693/4 "2024-07-09T12:18:49Z")

</div>

That’s your problem. Source does a #get.

> **[Ghost Handlebars Theme Helpers: get](https://ghost.org/docs/themes/helpers/get/#filter)**
>
> Make custom queries to the Ghost API using the get helper and fetch publicly available data. Read more about Ghost themes! 👻

---

<div class="post-metadata">

**Author:** ![johnnyd](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/johnnyd/32/31168_2.png) [@johnnyd](https://forum.ghost.org/u/johnnyd)\
**Post date:** [July 9, 2024, 1:26pm UTC](https://forum.ghost.org/t/hiding-a-tag-from-the-homepage-and-showing-it-in-a-dedicated-page/48693/5 "2024-07-09T13:26:45Z")

</div>

Oh I see this issue in `source`’s repo

> <https://github.com/TryGhost/Source/issues/33>
>
> After switching to the new Source theme, the filters I've set up in my custom ro…utes.yaml are no longer filtering posts correctly. Others in the forums also seem to have this issue: https://forum.ghost.org/t/the-source-theme-doesnt-show-posts-on-websites-with-custom-routes/41741/15
> 
> I have my routes.yaml set up to hide posts with certain tags from my homepage, which with Source no longer has any filtering. I also found that the collection pages I've set up for specific tags are only filtering up to the lazy load. The next set of posts loaded have no filtering.
> 
> EDIT: Now that I'm looking more closely, the lazy load on collection pages is loading the whole feed over again, repeating the posts already loaded.

Thanks.

---

<div class="post-metadata">

**Author:** ![avgvstvs](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/avgvstvs/32/29677_2.png) [@avgvstvs](https://forum.ghost.org/u/avgvstvs)\
**Post date:** [August 10, 2024, 3:56pm UTC](https://forum.ghost.org/t/hiding-a-tag-from-the-homepage-and-showing-it-in-a-dedicated-page/48693/6 "2024-08-10T15:56:06Z")

</div>

I changed the {{get}} for {{foreach}} and worked for me.

[post-list.hbs](https://github.com/SincosoftSAS/Bitakora.GhostSourceTheme/blob/main/partials/components/post-list.hbs)
