zola/docs/templates/shortcodes/gallery.html

11 lines
294 B
HTML
Raw Permalink Normal View History

<div>
2018-12-03 16:27:28 +00:00
{% for asset in page.assets -%}
2018-12-28 00:35:12 +00:00
{%- if asset is matching("[.](jpg|png)$") -%}
{% set image = resize_image(path=asset, width=240, height=180) %}
<a href="{{ get_url(path=asset) }}" target="_blank">
<img src="{{ image.url }}" />
2018-06-23 14:38:53 +00:00
</a>
2018-12-03 16:27:28 +00:00
{%- endif %}
{%- endfor %}
</div>