diff --git a/source/_patterns/04-components/card/card--node/card--node.twig b/source/_patterns/04-components/card/card--node/card--node.twig index 384e351a9421bb04723b8a161f3acadfaa668b31..a882838df82597986c96c836914fd941b67fb6a3 100644 --- a/source/_patterns/04-components/card/card--node/card--node.twig +++ b/source/_patterns/04-components/card/card--node/card--node.twig @@ -1,3 +1,6 @@ +{% if featured_image and node.image.img_element %} + <div class="uw-node__with-image"> +{% endif %} {% include '@components/card/card.twig' with { 'title': node.title, 'sub_title': node.sub_title, @@ -21,5 +24,8 @@ 'additional_info': node.additional_info, 'contact_for': node.contact_for, 'groups': node.groups, - 'featured_image': 'yes', + 'featured_image': featured_image, } %} +{% if featured_image and img_element %} + </div> +{% endif %} \ No newline at end of file