added way to custom hight on imagelist
Build image / build (push) Waiting to run
Details
Build image / build (push) Waiting to run
Details
This commit is contained in:
parent
2e101ea906
commit
25bf282e43
|
@ -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 }}" />
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue