Ugly in so many ways, but it works

This commit is contained in:
benjamin melançon 2019-10-01 13:14:07 -04:00
parent 3777ffe098
commit 61210c0804

View file

@ -13,16 +13,17 @@
{{ title_suffix.contextual_links }}
{#
{% set route_options = [] %}
{% set route_options['node'] = node %}
{% set link_path = path('entity.node.canonical', route_options) %}
{{ url }}
{{ node.id }}
#}
{% set image = ds_content.field_image|render %}
{% if image %}
{{ image }}
{% else %}
<a href="/test" class="background-replacement-for-no-image image"></a>
<a href="/node/{{ node.id }}" class="background-replacement-for-no-image image"></a>
{% endif %}
{{ ds_content|without('field_image') }}