More than one tag in post-cards

When i change in my post-card.hbs from the casper theme this:
{{if #primary_tag}}
<span class="post-card-tags"> {{primary_tag.name}}</span>
{{/if}}
to this:
{{if #tags}}
<span class="post-card-tags"> {{tags}}</span>
{{/if}}

it displays all the tags i want but the formatting is not working anymore.

Do you have any ideas what could be the reason?

Best,
Angela

What do you mean “the formatting is not working anymore”? Can you provide us with a screenshot?

You might also want to look into this.

Thx for the answer. I got it working now ith the foreach loop. Like this:
{{#foreach tags limit="3"}}
<span class="post-card-tags">{{name}}{{#unless @last}}, {{/unless}}</span>
{{/foreach}}