If statement problem on Handlebarjs

Hi Everyone,

I am having issues regarding an if statement. I am trying to create 2 types of posts being (guides or articles posts) with each having there own styling that comes with it. I am trying to figure out how to separation side of things but I am not having any luck.

Have a read of the docs for internal tags:

And the {{#has}} helper:

This is the standard way in Ghost to do what you describe.


If you intend to keep those two sets of content separate, you may want to consider Collections: https://ghost.org/tutorials/creating-content-collections/

You could set up separate templates for guides vs articles and have them rendered using the appropriate template automatically.


Hi Hannah,

Thank you so much for the assistance solved my problem and thank you again.


1 Like