Fix fitted images not rendering due to zola 0.14.0 API change

See https://github.com/getzola/zola/pull/1543
This commit is contained in:
timvisee 2021-07-19 23:53:44 +02:00
parent 32d945792c
commit ba5be8a3c9
No known key found for this signature in database
GPG Key ID: B8DB720BC383E172
1 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
<p>
<a href="{% if url %}{{ url | safe }}{% else %}{{ path | split(pat="/") | last }}{% endif %}" title="View full-size image">
<img src="{{ resize_image(path=path, width=750, height=1500, op="fit") }}" />
{% set image = resize_image(path=path, width=750, height=1500, op="fit") %}
<img src="{{ image.url }}" />
</a>
</p>