These are chat archives for TryGhost/Ghost

16th
Jan 2019
Daviz
@furyscript
Jan 16 08:12 UTC
How can I change color of selected tag in foreach? This is my code but not work
example
{{#tag}}
  {{#get "tags" limit="all" order="name asc"}}
        {{#foreach tags as |t|}}
          check: {{slug}} {{t.slug}}
          {{#has slug=t.slug}}
            <a href="{{url}}" class="secondary">{{t.slug}} - {{t.name}}</a>
          {{else}}
            <a href="{{url}}" class="primary">{{t.slug}} - {{t.name}}</a>
          {{/has}}
        {{/foreach}}
  {{/get}}
{{/tag}}