diff --git a/src/_includes/components/card.njk b/src/_includes/components/card.njk index 5d8ce96..acca62c 100644 --- a/src/_includes/components/card.njk +++ b/src/_includes/components/card.njk @@ -9,26 +9,19 @@ {{ item.data.title }} {% endif %} -
- - {% set definedDate = item.date %} - {% include "components/date.njk" %} - {% - if - activateTags and item.data.tags.length > 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") - %} - - {% endif %} - {% endfor %} - {% endif %} - +
+ {% set definedDate = item.date %} + {% include "components/date.njk" %} + {% + if + activateTags and item.data.tags.length > 1 + %} + {% for tag in item.data.tags %} + {% if tag != "posts" %} + + {% endif %} + {% endfor %} + {% endif %}

{{ item.data.description }}