cherrykitten.dev/templates/shortcodes/gallery.html
2024-06-07 14:29:58 +02:00

9 lines
329 B
HTML

<div class="gallery">
{% for asset in page.assets -%} {%- if asset is matching("[.](jpg|png)$") -%}
{% set image = resize_image(path=asset, width=960, height=720, op="fit") %}
<a href="{{ get_url(path=asset) }}" target="_blank">
<img src="{{ image.url }}" />
</a>
</label>
{%- endif %} {%- endfor %}
</div>