# Custom post.hbs

**URL:** <https://forum.ghost.org/t/custom-post-hbs/5655>\
**Category:** Themes\
**Created:** [February 14, 2019, 9:40pm UTC](https://forum.ghost.org/t/custom-post-hbs/5655 "2019-02-14T21:40:41Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![MayanMisfit](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/mayanmisfit/32/1287_2.png) [@MayanMisfit](https://forum.ghost.org/u/MayanMisfit)\
**Post date:** [February 14, 2019, 9:40pm UTC](https://forum.ghost.org/t/custom-post-hbs/5655/1 "2019-02-14T21:40:41Z")

</div>

is it possible to create a single post template for styling a specific tag?

---

<div class="post-metadata">

**Author:** ![vikaspotluri123](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/vikaspotluri123/32/24_2.png) [@vikaspotluri123](https://forum.ghost.org/u/vikaspotluri123)\
**Post date:** [February 15, 2019, 12:17am UTC](https://forum.ghost.org/t/custom-post-hbs/5655/2 "2019-02-15T00:17:05Z")

</div>

> styling a specific tag

Yep:

> **[Ghost Handlebars Theme Structure - Developer Documentation](https://ghost.org/docs/themes/structure/)**
>
> Discover the building blocks of a Handlebars theme in Ghost and start building a custom publication of your own! 👻

create a file called `tag-{slug}.hbs` and that will take precedence

---

<div class="post-metadata">

**Author:** ![MayanMisfit](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/mayanmisfit/32/1287_2.png) [@MayanMisfit](https://forum.ghost.org/u/MayanMisfit)\
**Post date:** [February 15, 2019, 7:03am UTC](https://forum.ghost.org/t/custom-post-hbs/5655/3 "2019-02-15T07:03:58Z")

</div>

Sorry, I’m confused. Isn’t that the tag listing page?  
What I’m trying to do is have a separate single post page for a particular tag.

Say if I have a tag called quotes, and I click into the single post view. I want it to display only the content of the post, not the title or the meta data.

I know you can do post{slug}.hbs on a post by post basis, but I want to do it on a tag tag basis. Something like post{tag}.hbs

---

<div class="post-metadata">

**Author:** ![vikaspotluri123](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/vikaspotluri123/32/24_2.png) [@vikaspotluri123](https://forum.ghost.org/u/vikaspotluri123)\
**Post date:** [February 15, 2019, 2:13pm UTC](https://forum.ghost.org/t/custom-post-hbs/5655/4 "2019-02-15T14:13:52Z")

</div>

I don’t follow on what you’re trying to do?

Go to `/tag/quotes` -\> It displays only post content rather than post meta for every post?

---

<div class="post-metadata">

**Author:** ![HauntedThemes](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/hauntedthemes/32/15301_2.png) [@HauntedThemes](https://forum.ghost.org/u/HauntedThemes)\
**Post date:** [February 15, 2019, 2:28pm UTC](https://forum.ghost.org/t/custom-post-hbs/5655/5 "2019-02-15T14:28:09Z")

</div>

I think that @MayanMisfit wants something like this. All posts that have a certain tag to automatically get a post template. For example:

```auto
collections:
  /news/:
    permalink: /news/{slug}/
    filter: news
    template: news

```

The template for `/news/` is `news.hbs`. But all posts will get post.hbs as template. So he wants to get `post-news.hbs` for all these posts.

Not sure there is a way to set but I might be wrong. I can only think of using `{{#has tag="news"}}` inside `post.hbs` and load from partials a custom structure.

---

<div class="post-metadata">

**Author:** ![MayanMisfit](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/mayanmisfit/32/1287_2.png) [@MayanMisfit](https://forum.ghost.org/u/MayanMisfit)\
**Post date:** [February 15, 2019, 6:23pm UTC](https://forum.ghost.org/t/custom-post-hbs/5655/6 "2019-02-15T18:23:38Z")

</div>

Yes, that’s pretty much it. Could I put like 95% of the post.hbs in to a partial? Well all the styled elements at least? So I’d have a partial called ‘posts’ and one called ‘notes’

---

<div class="post-metadata">

**Author:** ![MayanMisfit](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/mayanmisfit/32/1287_2.png) [@MayanMisfit](https://forum.ghost.org/u/MayanMisfit)\
**Post date:** [February 16, 2019, 12:11am UTC](https://forum.ghost.org/t/custom-post-hbs/5655/7 "2019-02-16T00:11:23Z")

</div>

Ok this is sorted now, I was being dense

---

<div class="post-metadata">

**Author:** ![ravingDIODE](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/ravingdiode/32/1663_2.png) [@ravingDIODE](https://forum.ghost.org/u/ravingDIODE)\
**Post date:** [June 28, 2019, 7:17pm UTC](https://forum.ghost.org/t/custom-post-hbs/5655/8 "2019-06-28T19:17:33Z")

</div>

If I am understanding this correctly:

Is it possible to have all posts with a specific tag to have a different layout?

In my case, I have podcasts in posts. So I create a post and assign the tag “podcasts”. Then that post has a title, short introduction and then an embedded podcast link from anchor.fm.

I don’t want to assign post images because I don’t like the big header image for podcast posts. I want to make it smaller and adjust it somewhat.

---

<div class="post-metadata">

**Author:** ![tttp](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/tttp/32/3964_2.png) [@tttp](https://forum.ghost.org/u/tttp)\
**Post date:** [July 1, 2019, 5:31pm UTC](https://forum.ghost.org/t/custom-post-hbs/5655/9 "2019-07-01T17:31:48Z")

</div>

Hi,

Have you tried custom post?  
[https://ghost.org/tutorials/custom-page-templates/](https://ghost.org/tutorials/custom-page-templates/)

you’d create a custom-podcast.hbs and you can assign it to your podcast posts
