bizcochito.onion/templates/imagelist.njk

13 lines
413 B
Plaintext
Raw Permalink Normal View History

2024-07-07 11:24:43 +00:00
{% macro images_list(image_list, height=31, url=false) %}
2024-07-03 07:47:47 +00:00
<div class="img">
{% for image in image_list %}
2024-07-07 11:24:43 +00:00
<a href="{%- if url -%}https://{{ image.url }}{%- endif -%}">
2024-07-07 10:57:01 +00:00
<img style="height:{{ height }}px;
2024-07-03 07:47:47 +00:00
width:auto"
src="static/icons/{{ image.folder }}/{{ image.name }}"
alt="{{ image.url }}" />
</a>
{% endfor %}
</div>
{% endmacro %}