Updated card component to show all tags

This commit is contained in:
David Leitko 2024-05-26 17:46:30 -04:00
parent 1569d291b9
commit feb3b727c5

View file

@ -17,7 +17,16 @@
if
activateTags and item.data.tags.length > 1
%}
<span class="button post-tag"> {{ item.data.tags[1] }} </span>
{# For cards with multiple tags, show all tags for the card #}
{% for tagButton in range( 0, item.data.tags.length ) %}
{# Skip "administrative" tags like 'posts' and 'feature' #}
{% if
(item.data.tags[ tagButton ] != "posts") and
(item.data.tags[ tagButton ] != "feature")
%}
<span class="button post-tag"> {{ item.data.tags[ tagButton ] }} </span>
{% endif %}
{% endfor %}
{% endif %}
</span>
</div>