Commit 1c654d56 authored by Eric Bremner's avatar Eric Bremner
Browse files

ISTWCMS-5331: fixing header in card so that things so properly

parent 3dba5ae0
......@@ -6,12 +6,6 @@
{% 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,
......
......@@ -23,18 +23,12 @@
} %}
{% endif %}
{% if header and show_title == 'yes' %}
{% if header %}
{% include '@components/card/card-elements/_header.twig' with {
'header': header,
'show_title': show_title,
'type': type
} %}
{% 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