mirror of
https://github.com/getzola/zola
synced 2024-12-13 22:02:29 +00:00
8 lines
300 B
HTML
8 lines
300 B
HTML
{% for asset in page.assets -%}
|
|
{%- if asset is matching("[.](jpg|png)$") -%}
|
|
<a href="{{ get_url(path=asset) | safe }}" target="_blank">
|
|
<img src="{{ resize_image(path=asset, width=240, height=180, op="fill", format="auto") | safe }}" />
|
|
</a>
|
|
 
|
|
{%- endif %}
|
|
{%- endfor %}
|