# Embedding metadata into collections / channels and the (Page 1) problem

**URL:** <https://forum.ghost.org/t/embedding-metadata-into-collections-channels-and-the-page-1-problem/21243>\
**Category:** Routing\
**Created:** [March 26, 2021, 1:06pm UTC](https://forum.ghost.org/t/embedding-metadata-into-collections-channels-and-the-page-1-problem/21243 "2021-03-26T13:06:36Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![josephkman](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/josephkman/32/11149_2.png) [@josephkman](https://forum.ghost.org/u/josephkman)\
**Post date:** [March 26, 2021, 1:06pm UTC](https://forum.ghost.org/t/embedding-metadata-into-collections-channels-and-the-page-1-problem/21243/1 "2021-03-26T13:06:36Z")

</div>

Wanted to summarize a problem I had and ask for feedback:

I use the world-famous Krabi theme. When I created multiple collections in routes.yaml, I noticed that the browser tab displayed title as Site Title (Page 1)…I read up on this and found a solution (creating separate template for each collection and applying custom titles)

But the mystery remains: where does (Page 1) come from?

My head.hbs defines title like this:

{{ meta\_title }}

And is there no better way for embedding metadata into collections / channels, than to create separate template for each?

The other solution I read is to create static pages and then assigning them to each collection / channel through a Data: attribute in routes.yaml …but that creates random pages on your website, which Google will probably index.

---

<div class="post-metadata">

**Author:** ![lorcand](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/lorcand/32/11466_2.png) [@lorcand](https://forum.ghost.org/u/lorcand)\
**Post date:** [March 26, 2021, 1:25pm UTC](https://forum.ghost.org/t/embedding-metadata-into-collections-channels-and-the-page-1-problem/21243/2 "2021-03-26T13:25:22Z")

</div>

Is your site public … just curious to see Krabi in action in the way you describe.

---

<div class="post-metadata">

**Author:** ![josephkman](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/josephkman/32/11149_2.png) [@josephkman](https://forum.ghost.org/u/josephkman)\
**Post date:** [March 26, 2021, 1:31pm UTC](https://forum.ghost.org/t/embedding-metadata-into-collections-channels-and-the-page-1-problem/21243/3 "2021-03-26T13:31:30Z")

</div>

Thanks for asking, I’ll DM you the password…would appreciate anyone who wants to test it…I took Krabi, eliminated sidebars to provide more focus, then changed the tags list to feature a mega menu with all the main tags

---

<div class="post-metadata">

**Author:** ![Caucasus-and-Mercury](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/caucasus-and-mercury/32/2467_2.png) [@Caucasus-and-Mercury](https://forum.ghost.org/u/Caucasus-and-Mercury)\
**Post date:** [March 26, 2021, 5:01pm UTC](https://forum.ghost.org/t/embedding-metadata-into-collections-channels-and-the-page-1-problem/21243/4 "2021-03-26T17:01:42Z")

</div>

If you create static pages with the same name/slug as your collection they wont render or be separately visible, will they?

---

<div class="post-metadata">

**Author:** ![josephkman](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/josephkman/32/11149_2.png) [@josephkman](https://forum.ghost.org/u/josephkman)\
**Post date:** [March 26, 2021, 5:23pm UTC](https://forum.ghost.org/t/embedding-metadata-into-collections-channels-and-the-page-1-problem/21243/5 "2021-03-26T17:23:01Z")

</div>

Great point, I had not thought of that…that makes both solutions equally elegant…which would you favor, I just want to get basic metadata in?

---

<div class="post-metadata">

**Author:** ![Caucasus-and-Mercury](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/caucasus-and-mercury/32/2467_2.png) [@Caucasus-and-Mercury](https://forum.ghost.org/u/Caucasus-and-Mercury)\
**Post date:** [March 26, 2021, 5:45pm UTC](https://forum.ghost.org/t/embedding-metadata-into-collections-channels-and-the-page-1-problem/21243/6 "2021-03-26T17:45:17Z")

</div>

Eeh I actually don’t know, I’m unsure. Maybe someone else has an opinion?

I used to mess around with this a lot with earlier versions of ghost, it was quite an issue. I was trying to do code insert also with schema data, and have it show up on collection pages. Hopefully it’s sorted out now.

I remember being confused also with what was actually rendered as meta - the stuff I put in metada flields or the description field, I had the impression the developers were switching back and forth with different ghost versions. I might be wrong though.

Would be interesting if you let us know if you made it work, metadata rendering the way it should?

---

<div class="post-metadata">

**Author:** ![josephkman](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/josephkman/32/11149_2.png) [@josephkman](https://forum.ghost.org/u/josephkman)\
**Post date:** [March 26, 2021, 5:56pm UTC](https://forum.ghost.org/t/embedding-metadata-into-collections-channels-and-the-page-1-problem/21243/7 "2021-03-26T17:56:45Z")

</div>

Yes, with Ghost 3.4x, as far as the title is concerned, both the static page method and the custom template method work well (don’t quite know if the meta description is rendering as well)…maybe @DavidDarnes and @marekgregor could help us with the latest on this issue (they were the ones who suggested the solutions to embed metadata into a custom collection)

---

<div class="post-metadata">

**Author:** ![DavidDarnes](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/daviddarnes/32/3533_2.png) [@DavidDarnes](https://forum.ghost.org/u/DavidDarnes)\
**Post date:** [March 27, 2021, 2:23pm UTC](https://forum.ghost.org/t/embedding-metadata-into-collections-channels-and-the-page-1-problem/21243/8 "2021-03-27T14:23:53Z")

</div>

You might benefit from this solution I gave in another topic:

> [@How to use functional helpers to select index, with custom routing?](https://forum.ghost.org/t/how-to-use-functional-helpers-to-select-index-with-custom-routing/14106/2):
>
> Just to clarify, the routes file should be named routes.yaml blush I’m not entirely sure what SEO metadata you want to change, but here’s a method of applying your custom page title and pagination number: Replace the {{meta\_title}} in the default.hbs with the following: \<title\>{{{block "title"}}}\</title\> This will allow you to customise the page title in all templates. So in most cases you’ll want to set it to the meta\_title. That can be done by adding the following to the template: {{#co…

---

<div class="post-metadata">

**Author:** ![josephkman](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/josephkman/32/11149_2.png) [@josephkman](https://forum.ghost.org/u/josephkman)\
**Post date:** [March 27, 2021, 5:38pm UTC](https://forum.ghost.org/t/embedding-metadata-into-collections-channels-and-the-page-1-problem/21243/9 "2021-03-27T17:38:52Z")

</div>

yes, thanks, have already benefited, that’s the approach I am using
