zola/docs/templates/shortcodes/gallery.html

9 lines
263 B
HTML
Raw Normal View History

2018-12-03 16:27:28 +00:00
{% for asset in page.assets -%}
{%- if asset is ending_with(".jpg") -%}
<a href="{{ get_url(path=asset) | safe }}">
<img src="{{ resize_image(path=asset, width=240, height=180, op="fill") | safe }}" />
2018-06-23 14:38:53 +00:00
</a>
&ensp;
2018-12-03 16:27:28 +00:00
{%- endif %}
{%- endfor %}