Hi,
Using the official Source theme (v1.2.2) on a self hosted ghost instance – I am trying to get the first two tags of each post to show up on post pages, not just the primary tag.
I have seen where the tags get displayed on the posts pages by looking in post.hbs but I am not sure how to modify it.
This is what currently shows:
...
<header class="gh-article-header gh-canvas">
{{#if primary_tag}}
<a class="gh-article-tag" href="{{primary_tag.url}}">{{primary_tag.name}}</a>
{{/if}}
...
What I am looking for however, is to show the first two tags, not just the primary one.
I am sorry for having to ask such a simple question, but I am new to Ghost theming, and I am starting off by just modifying one of the official themes.
I have read a lot of stuff online, about replacing the code above with custom code that shows all tags, but that’s not what I want – as my posts often have 4 or 5 tags, I only want to show the primary and secondary ones and nothing I have seen thus far tells me how to only display first two.
Hopefully, some of you would be able to help me with this.
Thanks
![]()
Jay
Here are my system details.
System Details:
I am self hosting ghost on a private VPS. My site is accessible via www.jaytelford.me .
- Ghost Version: 5.82.11
- Environment: production
- Node: v18.20.2
- Database: mysql8 – 8.0.36-2
VPS Details:
- OS: Ubuntu 24.04 LTS
- Kernel: GNU/Linux 6.8.0-31-generic x86_64
