cherrykitten.dev/templates/shortcodes/gallery.html

10 lines
329 B
HTML
Raw Normal View History

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