added way to custom hight on imagelist
Build image / build (push) Waiting to run Details

This commit is contained in:
Alie 2024-07-07 12:57:01 +02:00
parent 2e101ea906
commit 25bf282e43
2 changed files with 3 additions and 3 deletions

View File

@ -1,8 +1,8 @@
{% macro images_list(image_list) %} {% macro images_list(image_list, height=31) %}
<div class="img"> <div class="img">
{% for image in image_list %} {% for image in image_list %}
<a href="https://{{ image.url }}"> <a href="https://{{ image.url }}">
<img style="height:31px; <img style="height:{{ height }}px;
width:auto" width:auto"
src="static/icons/{{ image.folder }}/{{ image.name }}" src="static/icons/{{ image.folder }}/{{ image.name }}"
alt="{{ image.url }}" /> alt="{{ image.url }}" />

View File

@ -13,7 +13,7 @@
Funni gifs Funni gifs
</h2> </h2>
{% from "imagelist.njk" import images_list as il2 %} {% from "imagelist.njk" import images_list as il2 %}
{{ il2(image("gif") ) }} {{ il2(image("gif"), height=50 ) }}
<h2> <h2>
Frens Frens
</h2> </h2>