mirror of
https://github.com/getzola/zola
synced 2024-12-17 15:43:07 +00:00
10 lines
294 B
HTML
10 lines
294 B
HTML
<div>
|
|
{% for asset in page.assets -%}
|
|
{%- 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 }}" />
|
|
</a>
|
|
{%- endif %}
|
|
{%- endfor %}
|
|
</div>
|