www.netz39.de/_includes/aligner.html

20 lines
663 B
HTML
Raw Normal View History

2023-10-16 01:36:59 +02:00
{% assign images = include.images | split: ',' %}
{% if include.column == "auto" %}
{% assign column = 100.0 | divided_by: images.size %}
{% elsif include.column > 0 %}
{% assign column = 100.0 | divided_by: include.column %}
{% endif %}
<div class="row">
{% for image in images %}
<div {% if column %} style="flex: {{ column }}%" {% else %} class="column" {% endif %} >
<img {% if images.size == 1 %}class="single"{% endif %}
src="{{ image | prepend: 'https://cdn.netz39.de/img/' | relative_url }}"
2023-10-16 01:36:59 +02:00
alt="{{ image | prepend: '/' | split: '/' | last }}">
</div>
{% endfor %}
</div>
{% assign column = false %}