diff --git a/src/_includes/layouts/recipes-list.njk b/src/_includes/layouts/recipes-list.njk index 603a250..961b663 100644 --- a/src/_includes/layouts/recipes-list.njk +++ b/src/_includes/layouts/recipes-list.njk @@ -15,27 +15,28 @@
{% for recipe in collections.recipes %} - {% if not selectedTag or selectedTag in recipe.data.tags %} {# If we don't have a selectedTag, we are on the all recipes page #} -
- {% recipeimage recipe.data.image, "c-card__image", recipe.data.title, "(min-width: 1150px) 25vw, (min-width: 850px) 33vw, (min-width: 550px) 50vw, 100vw" %} -
+
+ {% recipeimage recipe.data.image, "c-card__image", recipe.data.title, "(min-width: 1150px) 25vw, (min-width: 850px) 33vw, (min-width: 550px) 50vw, 100vw" %} +
+ {% if not recipe.data.tags | length %}
{% for tag in recipe.data.tags %} {{ tag | onlyEmoji | safe }} {% endfor %}
- {% if recipe.data.time %} -
- {% include 'icons/time.svg' %} - {{ recipe.data.time }} -
- {% endif %} -
- -

{{ recipe.data.title }}

-
+ + {% endif %} + {% if recipe.data.time %} +
+ {% include 'icons/time.svg' %} + {{ recipe.data.time }} +
+ {% endif %}
- {% endif %} + +

{{ recipe.data.title }}

+
+
{% endfor %}
@@ -45,7 +46,7 @@
{% include 'components/taglist.njk' %}
- + {% endif %} {% endblock %} \ No newline at end of file