forked from kittv/web
1
0
Fork 0

Zpracování obrázků dle verze Zola 0.14.0

viz https://github.com/getzola/zola/blob/master/CHANGELOG.md#0140-2021-07-19
content
Emil Miler 3 years ago
parent 9a2198287f
commit ba24471e6c

@ -178,7 +178,8 @@
{% break %} {% break %}
{% endif %} {% endif %}
{% endfor %} {% endfor %}
<img src="{{ resize_image(path=img, width=128, height=128, op="fill") }}" alt="{{ profile.title }}"></a> {% set image = resize_image(path=img, width=128, height=128, op="fill") %}
<img src="{{ image.url }}" alt="{{ profile.title }}"></a>
{% endmacro %} {% endmacro %}
{% macro profile_info(profile) %} {% macro profile_info(profile) %}
@ -208,7 +209,8 @@
<div class="gallery"> <div class="gallery">
{% for asset in page.assets %} {% for asset in page.assets %}
{% if asset is matching("[.](jpg|png)$") %} {% if asset is matching("[.](jpg|png)$") %}
<a data-fancybox="{{ page.title }}" href="{{ get_url(path=asset) }}"><img src="{{ resize_image(path=asset, width=300, height=200, op="fill") }}" alt="{{ asset }}"></a> {% set image = resize_image(path=asset, width=300, height=200, op="fill") %}
<a data-fancybox="{{ page.title }}" href="{{ get_url(path=asset) }}"><img src="{{ image.url }}" alt="{{ asset }}"></a>
{% endif %} {% endif %}
{% endfor %} {% endfor %}
</div> </div>
@ -229,7 +231,8 @@
{% endif %} {% endif %}
{% endfor %} {% endfor %}
{% endif %} {% endif %}
<img src="{{ resize_image(path=img, width=300, height=200, op="fill") }}" alt="{{ gallery.title }}"> {% set image = resize_image(path=img, width=300, height=200, op="fill") %}
<img src="{{ image.url }}" alt="{{ gallery.title }}">
<div class="info"> <div class="info">
<div class="title">{{ gallery.title }}</div> <div class="title">{{ gallery.title }}</div>

Loading…
Cancel
Save