{% macro print_recipe(recipe) %} {{ recipe.title }} {% if recipe.date %}{{ recipe.date | date(format="%d.%m.%Y") }}{% endif %} {% endmacro print_recipe %} {% macro recipe_preview_image(recipe) %} {% set_global image = "../static/temp.jpg" %} {% for asset in recipe.assets %} {% if asset is matching("[img.](jpg|png)$") %} {% set_global image = asset %} {% break %} {% endif %} {% endfor %} {% set image = resize_image(path=image, width=300, height=300, op="fill") %} {{ image.url }} {% endmacro recipe_preview_image %} {% macro pagination() %} {% if paginator.previous %} {% else %} {% endif %} {{ paginator.current_index }} / {{ paginator.number_pagers }} {% if paginator.next %} {% else %} {% endif %} {% endmacro pagination %} {% macro subnav() %}