From 25bf282e4312be242013b1f103f63b25a9fe99af Mon Sep 17 00:00:00 2001 From: Alie Date: Sun, 7 Jul 2024 12:57:01 +0200 Subject: [PATCH] added way to custom hight on imagelist --- templates/imagelist.njk | 4 ++-- templates/index.njk | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/imagelist.njk b/templates/imagelist.njk index ae77e15..1c7734d 100644 --- a/templates/imagelist.njk +++ b/templates/imagelist.njk @@ -1,8 +1,8 @@ -{% macro images_list(image_list) %} +{% macro images_list(image_list, height=31) %}
{% for image in image_list %} - {{ image.url }} diff --git a/templates/index.njk b/templates/index.njk index 1e287a9..606956b 100755 --- a/templates/index.njk +++ b/templates/index.njk @@ -13,7 +13,7 @@ Funni gifs {% from "imagelist.njk" import images_list as il2 %} - {{ il2(image("gif") ) }} + {{ il2(image("gif"), height=50 ) }}

Frens