Skip to content
Snippets Groups Projects
Commit 276e34ff authored by Martin Leblanc's avatar Martin Leblanc Committed by Kevin Paxman
Browse files

ISTWCMS-6654: Add the node media type to the node classes array

parent 1c076802
No related branches found
No related tags found
1 merge request!156Feature/istwcms 6654 m26lebla fix card header nodes with hero images
{% if media_flags.has_media %} {% if media_flags.has_media %}
{% set node_classes = 'uw-node__with-media' %} {% set node_classes = 'uw-node__with-media uw-node__with-media--' ~ node.media.type %}
{% else %} {% else %}
{% set node_classes = 'uw-node__without-media' %} {% set node_classes = 'uw-node__without-media' %}
{% endif %} {% endif %}
......
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