{% set_global image_found = 0 %} {% for asset in recipe.assets %} {% if asset is matching("[img.](jpg|png)$") %} {% set_global image_found = 1 %} {% break %} {% endif %} {% endfor %} {% if image_found == 0 %} {% endif %} {% set_global image_found = 0 %} {% if recipe.title %}{{ recipe.title }}{% endif %} {% if recipe.date %}{{ recipe.date | date(format="%d.%m.%Y") }}{% endif %}