I simply cannot get the has helper block to work. Can anyone help me? I’m making a multi language blog, so that would help me a lot.
What I want is to be able to check if the site has “/no/” in the slug or the tag “#no”, but I can’t get either to work.
As an example, I took out one of the most basic uses I’m trying to get to work:
{{#if @site.description}}
{{#has slug=../no}}
<p class="m-hero-description bigger">Description test - no</p>
{{else}}
<p class="m-hero-description bigger">Description test - en</p>
{{/has}}
{{/if}}
I’ve also tried stuff like
{{#has slug=no}}
{{#has slug=“no”}}
{{#has slug=/no/}}
etc.
What am I doing wrong?? The {{else}}-part works fine.
-Erlend