Hidden content with If

Hi, all

How hidden content based condition bellow:

{{#if url_tag=“mytag”}}
{{else}}
{{/if}}

file: loop.hbs

I need to condition the page name Tag or Slug and hide a certain content. Could anyone help?

If you’re looking to see if a post has a specific tag, you can do so like this:

{{#has tag="hash-super-secret"}}
{{!-- has tag --}}
{{else}}
{{!-- does not have tag --}}
{{/if}}
1 Like

@vikaspotluri123 This condition no work.

{{#has tag="hash-super-secret"}}
{{!-- has tag --}}
{{else}}
{{!-- does not have tag --}}
{{/has}}

I need condition to the variable: {{tag.slug}}

Maybe you need the #match helper instead?