website/templates/imagelist.njk

13 lines
413 B
Plaintext

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