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 296c978446ae6b12dd53e641065d1eb6dd98a3a2..9d95c708d04b869ccd9c4db74154dc5327090f1a 100644 --- a/source/_patterns/04-components/card/card--teaser/card--teaser.twig +++ b/source/_patterns/04-components/card/card--teaser/card--teaser.twig @@ -7,13 +7,11 @@ {% include '@components/card/card.twig' with { 'type': type, 'url': teaser.url, - 'title': teaser.title, - 'sub_title': teaser.sub_title, - 'date': teaser.date, 'header': teaser.header, 'listing_image': teaser.listing_image, 'content': teaser.content, 'tags': teaser.tags, 'show_hover': show_hover, - 'card_type': 'teaser', + '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 7bc9376bdd5d331414a379ea3e228c490995f64d..8771fc74fe620d10691f60e610712ea1c563d30b 100644 --- a/source/_patterns/04-components/card/card.twig +++ b/source/_patterns/04-components/card/card.twig @@ -11,10 +11,12 @@ {% set show_header = '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' %} +{% 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 %} {% endif %} <article class="card{% if type %} card__{{ type }}{% endif %}{% if show_hover %} card--show-hover {% endif %}" > diff --git a/source/_patterns/04-components/profile/profile.twig b/source/_patterns/04-components/profile/profile.twig index cccbda054a00f75f2a001bbf016e2be4fe4802bf..3d8e3369175e637175225b35878ff7054ae71961 100644 --- a/source/_patterns/04-components/profile/profile.twig +++ b/source/_patterns/04-components/profile/profile.twig @@ -3,9 +3,11 @@ {% block content %} {% for profile in profiles %} {% include '@components/card/card--teaser/card--teaser.twig' with { - teaser: profile, + 'teaser': profile, + 'type': 'teaser', + 'show_body': 'yes', } %} {% endfor %} {% endblock %} {% endembed %} -</div> \ No newline at end of file +</div>