diff --git a/templates/macros.html b/templates/macros.html index a5ec653..6b5e729 100644 --- a/templates/macros.html +++ b/templates/macros.html @@ -17,7 +17,8 @@ {% break %} {% endif %} {% endfor %} - {{ recipe.title }} + {% set image = resize_image(path=image, width=300, height=300, op="fill") %} + {{ recipe.title }}

{{ recipe.title }}

{% if recipe.date %}{{ recipe.date | date(format="%d.%m.%Y") }}{% endif %} @@ -41,7 +42,8 @@ {% macro recipe_image() %} {% for asset in page.assets %} {% if asset is matching("[img.](jpg|png)$") %} - Náhled + {% set image = resize_image(path=asset, width=900, height=400, op="fill") %} + Náhled {% break %} {% endif %} {% endfor %}