Skip to content
Snippets Groups Projects
Commit 809e499d authored by Eric Bremner's avatar Eric Bremner
Browse files

ISTWCMS-4704: adding classes for node types and with image on nodes

parent b63e8de4
No related branches found
No related tags found
1 merge request!66ISTWCMS-4704: adding date component with ability to handle multiple dates and...
{% if featured_image and node.image.img_element %}
<div class="uw-node__with-image">
{% endif %}
{% include '@components/card/card.twig' with { {% include '@components/card/card.twig' with {
'title': node.title, 'title': node.title,
'sub_title': node.sub_title, 'sub_title': node.sub_title,
...@@ -21,5 +24,8 @@ ...@@ -21,5 +24,8 @@
'additional_info': node.additional_info, 'additional_info': node.additional_info,
'contact_for': node.contact_for, 'contact_for': node.contact_for,
'groups': node.groups, 'groups': node.groups,
'featured_image': 'yes', 'featured_image': featured_image,
} %} } %}
{% if featured_image and img_element %}
</div>
{% endif %}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment