Obrázek v receptu odkazuje na zdrojový obrázek

This commit is contained in:
Emil Miler 2020-01-12 18:03:22 +01:00
parent 726644c1d8
commit 54ac1a865f

View File

@ -9,7 +9,7 @@
<hr>
{% for asset in page.assets %}
{% if asset is matching("[img.](jpg|png)$") %}
<img src="{{ resize_image(path=asset, width=900, height=400, op="fill") }}" alt="Náhled">
<a href="/{{ asset }}"><img src="{{ resize_image(path=asset, width=900, height=400, op="fill") }}" alt="Náhled"></a>
{% break %}
{% endif %}
{% endfor %}