Commit b96624a4 authored by Eric Bremner's avatar Eric Bremner Committed by Martin Leblanc
Browse files

ISTWCMS-5331: ensuring the title appears on the profile node

parent 5cc72059
......@@ -6,12 +6,19 @@
{% set modifier_classes = 'node--' ~ node.bundle %}
{% if node.bundle == 'profile' %}
{% set show_header = 'yes' %}
{% else %}
{% set show_header = 'no' %}
{% endif %}
<div class="uw-node__{{ node_image_class }}">
{% include '@components/card/card.twig' with {
'url': node.url,
'type': type,
'show_hover': '',
'header': node.header,
'show_header': show_header,
'media': node.media,
'image': node.image,
'content': node.content,
......
......@@ -31,6 +31,12 @@
'image': image,
'bundle': bundle
} %}
{% elseif show_header == 'yes' %}
{% include '@components/card/card-elements/_header.twig' with {
'header': header,
'show_title': 'no',
'type': type
} %}
{% endif %}
{% if content or banner %}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment