diff --git a/src/_includes/components/card.njk b/src/_includes/components/card.njk index 0198002..5d8ce96 100644 --- a/src/_includes/components/card.njk +++ b/src/_includes/components/card.njk @@ -17,7 +17,16 @@ if activateTags and item.data.tags.length > 1 %} - {{ item.data.tags[1] }} + {# 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") + %} + {{ item.data.tags[ tagButton ] }} + {% endif %} + {% endfor %} {% endif %}