# Using routes to have a collection and still show on homepage

**URL:** <https://forum.ghost.org/t/using-routes-to-have-a-collection-and-still-show-on-homepage/47290>\
**Category:** Using Ghost\
**Created:** [May 12, 2024, 5:08pm UTC](https://forum.ghost.org/t/using-routes-to-have-a-collection-and-still-show-on-homepage/47290 "2024-05-12T17:08:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Barna](https://avatars.discourse-cdn.com/v4/letter/b/9e8a1a/32.png) [@Barna](https://forum.ghost.org/u/Barna)\
**Post date:** [May 12, 2024, 5:08pm UTC](https://forum.ghost.org/t/using-routes-to-have-a-collection-and-still-show-on-homepage/47290/1 "2024-05-12T17:08:02Z")

</div>

I am getting a little confused with the routes.yaml

I have the following setup at the moment:

```auto
  /:
    permalink: /{primary_tag}/{slug}/
    template: index
    filter: tag:-[guide,patch-notes,film-news,news]

  /guide/: 
    permalink: /guide/{slug}/
    template: guide
    filter: tag:guide
  
  /patch-notes/: 
    permalink: /patch-notes/{slug}/
    template: patch-notes
    filter: tag:patch-notes
  
  /film-news/: 
    permalink: /film-news/{slug}/
    template: film-news
    filter: tag:film-news

  /news/: 
    permalink: /news/{slug}/
    template: news
    filter: tag:news

```

Now this works so that all 4 of these tags have their own page, and do not show on the homepage.

The issue is that I still want the film-news and news tag to show on the homepage but if I remove the tags from the filter, the collection page still exists but shows no posts at all.

I have tried everything to get this to work but have come to the forums to see if anyone else has managed to fix this issue? or if it’s a bug?

---

<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:** [May 12, 2024, 6:42pm UTC](https://forum.ghost.org/t/using-routes-to-have-a-collection-and-still-show-on-homepage/47290/2 "2024-05-12T18:42:59Z")

</div>

Collections take all posts that match them in the order they occur. So posts go to the first one that matches them.

You may want to look at setting up a channel instead of a collection.

---

<div class="post-metadata">

**Author:** ![Barna](https://avatars.discourse-cdn.com/v4/letter/b/9e8a1a/32.png) [@Barna](https://forum.ghost.org/u/Barna)\
**Post date:** [May 12, 2024, 6:49pm UTC](https://forum.ghost.org/t/using-routes-to-have-a-collection-and-still-show-on-homepage/47290/3 "2024-05-12T18:49:24Z")

</div>

Thanks Cathy, I’m annoyed at myself for not thinking of using the channel instead of collection.

Just changed it all now and it worked straight away, lol.

---

<div class="post-metadata">

**Author:** ![ROY](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/roy/32/36059_2.png) [@ROY](https://forum.ghost.org/u/ROY)\
**Post date:** [May 12, 2024, 9:59pm UTC](https://forum.ghost.org/t/using-routes-to-have-a-collection-and-still-show-on-homepage/47290/4 "2024-05-12T21:59:41Z")

</div>

Hey, would you be able to share how your routes look now please. I’m trying to customize my homepage too, but don’t know how to use channel routing :(

---

<div class="post-metadata">

**Author:** ![Barna](https://avatars.discourse-cdn.com/v4/letter/b/9e8a1a/32.png) [@Barna](https://forum.ghost.org/u/Barna)\
**Post date:** [May 13, 2024, 7:51am UTC](https://forum.ghost.org/t/using-routes-to-have-a-collection-and-still-show-on-homepage/47290/5 "2024-05-13T07:51:22Z")

</div>

Of course mate, this is my current routes.yaml:

```auto
routes:
  /signup/: members/signup
  /signin/: members/signin
  /account/: members/account
  /offline/: offline
  /sitemap/:
    template: sitemap
    content_type: text/xml
  /news/rss/:
    template: news/rss
    content_type: text/xml

  /film-news/: 
    controller: channel
    template: film-news
    filter: tag:film-news
  
  /news/: 
    controller: channel
    template: news
    filter: tag:-[guide,patch-notes,film-news]

  /patch-notes/: 
    controller: channel
    template: patch-notes
    filter: tag:patch-notes

  /game-guides/: 
    controller: channel
    template: guide
    filter: tag:game-guides

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

```
