zola/docs/templates/shortcodes/gallery.html
2018-06-25 18:09:03 +02:00

9 lines
244 B
HTML

{% for asset in page.assets %}
{% if asset is ending_with(".jpg") %}
<a href="{{ get_url(path=asset) }}">
<img src="{{ resize_image(path=asset, width=240, height=180, op="fill") }}" />
</a>
&ensp;
{% endif %}
{% endfor %}