From 52d31b77bb9468ae6b62ca387022b644ec2894dc Mon Sep 17 00:00:00 2001 From: Emil Miler Date: Wed, 29 Sep 2021 20:03:54 +0200 Subject: [PATCH] =?UTF-8?q?Oprava=20generov=C3=A1n=C3=AD=20obr=C3=A1zk?= =?UTF-8?q?=C5=AF=20pro=20novou=20verzi=20Zoly?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/macros.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 %}