What is the difference between the 2?
With the documentation I couldn’t quite get it. If I wanted to apply a setting to a page which isn’t a post couldn’t I do both these??
{{#unless "post"}} example {{/unless}}
{{^is "post"}} example {{/unless}}
What is the difference between the 2?
With the documentation I couldn’t quite get it. If I wanted to apply a setting to a page which isn’t a post couldn’t I do both these??
{{#unless "post"}} example {{/unless}}
{{^is "post"}} example {{/unless}}
The {{is}}
helper is a helper that’s provided by Ghost to ask questions about the current context.
The {{unless}}
helper is provided by handlebars, and is the opposite of the {{if}}
helper. I think your usage of unless will never be true because "post"
is a truthy value (not true = false → the check fails)