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

ISTWCMS-5195: fixing show body in card

parent c642f1f7
No related branches found
No related tags found
1 merge request!118Feature/istwcms 5195 ebremner node theming
......@@ -13,5 +13,4 @@
'tags': teaser.tags,
'show_hover': show_hover,
'type': type,
'show_body': show_body
} %}
......@@ -11,14 +11,13 @@
{% set show_header = 'yes' %}
{% endif %}
{% if not show_body %}
{% if not hero_image and not listing_image and not banner and not content %}
{% set show_body = 'no' %}
{% else %}
{% set show_body = 'yes' %}
{% endif %}
{% if not hero_image and not listing_image and not banner and not content %}
{% set show_body = 'no' %}
{% else %}
{% set show_body = 'yes' %}
{% endif %}
<article class="card{% if type %} card__{{ type }}{% endif %}{% if show_hover %} card--show-hover {% endif %}" >
{% if hero_image and show_header == 'yes' %}
......
......@@ -5,7 +5,6 @@
{% include '@components/card/card--teaser/card--teaser.twig' with {
'teaser': profile,
'type': 'teaser',
'show_body': 'yes',
} %}
{% endfor %}
{% endblock %}
......
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