diff --git a/source/_patterns/04-components/card/card--teaser/card--teaser.twig b/source/_patterns/04-components/card/card--teaser/card--teaser.twig index 9d95c708d04b869ccd9c4db74154dc5327090f1a..48591f837ae4f8c5b84806224377033a50a29061 100644 --- a/source/_patterns/04-components/card/card--teaser/card--teaser.twig +++ b/source/_patterns/04-components/card/card--teaser/card--teaser.twig @@ -13,5 +13,4 @@ 'tags': teaser.tags, 'show_hover': show_hover, 'type': type, - 'show_body': show_body } %} diff --git a/source/_patterns/04-components/card/card.twig b/source/_patterns/04-components/card/card.twig index 8771fc74fe620d10691f60e610712ea1c563d30b..3264f6a54b3bfb4bbd924d3b2bd975e5006d3ecf 100644 --- a/source/_patterns/04-components/card/card.twig +++ b/source/_patterns/04-components/card/card.twig @@ -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' %} diff --git a/source/_patterns/04-components/profile/profile.twig b/source/_patterns/04-components/profile/profile.twig index 3d8e3369175e637175225b35878ff7054ae71961..6100e1e4727eaa743d4f7e6e95b21aa201b24f63 100644 --- a/source/_patterns/04-components/profile/profile.twig +++ b/source/_patterns/04-components/profile/profile.twig @@ -5,7 +5,6 @@ {% include '@components/card/card--teaser/card--teaser.twig' with { 'teaser': profile, 'type': 'teaser', - 'show_body': 'yes', } %} {% endfor %} {% endblock %}