Provide alternate background if no image

Ref #33
This commit is contained in:
benjamin melançon 2019-09-29 15:50:16 -04:00
parent d537a8dc9e
commit dabce158c9

View file

@ -13,6 +13,12 @@
{{ title_suffix.contextual_links }}
{{ ds_content }}
{% set image = ds_content.field_image|render %}
{% if image %}
{{ image }}
{% else %}
<figure class="background-replacement-for-no-image image"></figure>
{% endif %}
{{ ds_content|without('field_image') }}
</{{ ds_content_wrapper }}>