feat: Added support for svg images to flow_block_page template.
This commit is contained in:
parent
7940214eec
commit
2023f4c2f2
@ -27,7 +27,11 @@
|
|||||||
{% if this.attachments.images %}
|
{% if this.attachments.images %}
|
||||||
<div class="content__inner_half_box">
|
<div class="content__inner_half_box">
|
||||||
{% for image in this.attachments.images %}
|
{% for image in this.attachments.images %}
|
||||||
|
{% if image.format != 'svg' %}
|
||||||
<img class="content__half_box_image" src="{{ image|url }}" width="{{ image.width / 2 }}" alt="{{ image.description }}" srcset="{{ image.thumbnail(image.width / 2)|url }} 1x, {{ image|url }} 2x">
|
<img class="content__half_box_image" src="{{ image|url }}" width="{{ image.width / 2 }}" alt="{{ image.description }}" srcset="{{ image.thumbnail(image.width / 2)|url }} 1x, {{ image|url }} 2x">
|
||||||
|
{% else %}
|
||||||
|
<img class="content__half_box_image" src="{{ image|url }}" width="100%" alt="{{ image.description }}">
|
||||||
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Loading…
Reference in New Issue
Block a user