# Adding Metadata to Title in Default.hbs

**URL:** <https://forum.ghost.org/t/adding-metadata-to-title-in-default-hbs/42540>\
**Category:** Self-hosting\
**Created:** [November 7, 2023, 5:30pm UTC](https://forum.ghost.org/t/adding-metadata-to-title-in-default-hbs/42540 "2023-11-07T17:30:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Henry\_Junior](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/henry_junior/32/25808_2.png) [@Henry\_Junior](https://forum.ghost.org/u/Henry_Junior)\
**Post date:** [November 7, 2023, 5:30pm UTC](https://forum.ghost.org/t/adding-metadata-to-title-in-default-hbs/42540/1 "2023-11-07T17:30:21Z")

</div>

I was searching google for my `site:domain.com` and noticed many of my pages didn’t get indexed with nice titles. I wanted the format to be something like `Post Title - Site Name` on pages, posts and tag pages and just `Site Name` on the index page. I updated default.hbs with this line which did that and figured why not share in case others want to do the same. ✌

`<title>{{#is "post"}}{{meta_title}} - {{/is}}{{#is "page"}}{{meta_title}} - {{/is}}{{#is "tag"}}{{tag.name}} - {{/is}}{{@site.title}}</title>`
