I’m trying to apply unique styling to my primary tags based on what the tag name is, I’m doing this in the post-card.hbs file in the casper theme. I’m currently trying to do it like this:
{{#if primary_tag}}
{{#primary_tag}}
{{#has name="Handpicked"}}
<div class="handpicked-tag">
<a href="{{url}}">{{name}}</a>
</div>
{{else}}
<div class="image-tag">
<a href="{{url}}">{{name}}</a>
</div>
{{/has}}
{{/primary_tag}}
{{/if}}
I have also tried:
{{#if tags}}
{{#foreach tags limit="1"}}
{{#has tag="HANDPICKED, Handpicked, handpicked"}}
<div class="handpicked-tag">
<a href="{{url}}">{{name}}</a>
</div>
{{else}}
<div class="image-tag">
<a href="{{url}}">{{name}}</a>
</div>
{{/has}}
{{/foreach}}
{{/if}}
I’m not sure what I need to do, I think I may be in the wrong context. Any help is appreciated