using block in partial

This commit is contained in:
reverend 2021-04-02 22:00:21 +02:00
parent fb1237f111
commit 52271811ad

View File

@ -7,7 +7,11 @@
<figure class="LP-Figure"> <figure class="LP-Figure">
<img <img
src="{{ source_url }}" src="{{ source_url }}"
{% if alt_text %} alt="{{alt_text}}" {% endif %} {% if alt_text %}
alt="{{alt_text}}"
{% else %}
alt="{{block}}"
{% endif %}
class="LP-Image" class="LP-Image"
/> />
</figure> </figure>