mirror of
https://github.com/netz39/www.netz39.de.git
synced 2025-01-18 20:10:12 +01:00
19 lines
663 B
HTML
19 lines
663 B
HTML
{% 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 }}"
|
|
alt="{{ image | prepend: '/' | split: '/' | last }}">
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
|
|
{% assign column = false %}
|