Hide part of the template with something in the post content

Hey @bittiez :wave:

I wanted to clarify something first - handlebars in your post is never interpreted by the Ghost Theme Engine. The entire post is provided as a chunk of sanitized data that handlebars uses.


Ghost doesn’t have support for something like what you’re asking about right now; the best route for this is custom templates :) You might find the Custom Fields idea interesting:

With custom templates, you can use partials to limit the amount of code repetition if that’s an issue.

1 Like