diff --git a/source/_patterns/04-components/multi-type-list/_multi-tab-list-include-content.twig b/source/_patterns/04-components/multi-type-list/_multi-tab-list-include-content.twig index a7d8475547425af214ac9b4f79fdb62d81deee95..e0a616c6e928d6fae3b57ba57b67b671d4330b2f 100644 --- a/source/_patterns/04-components/multi-type-list/_multi-tab-list-include-content.twig +++ b/source/_patterns/04-components/multi-type-list/_multi-tab-list-include-content.twig @@ -1,55 +1,5 @@ {% for info in lists[type] %} - {% if type == 'Blog' %} - - {% include '@components/card/card.twig' with { - 'title': info.title, - 'url': info.url, - 'date': info.date, - 'author_name': info.author_name, - 'author_link': info.author_link, - 'sources': info.sources, - 'img_element': info.img_element, - 'alt': info.alt, - 'tags': info.tags, - 'show_hover': 'true', - 'content': info.content, - 'header_level': 2, - } %} - - {% endif%} - - {% if type == 'News' %} - - {% include '@components/card/card.twig' with { - 'title': info.title, - 'url': info.url, - 'date': info.date, - 'sources': info.sources, - 'img_element': info.img_element, - 'alt': info.alt, - 'tags': info.tags, - 'show_hover': 'true', - 'content': info.content, - 'author_name': info.author_name, - 'author_link': info.author_link - } %} - - {% endif %} - - {% if type == 'Events' %} - - {% include '@components/card/card.twig' with { - 'title': info.title, - 'url': info.url, - 'date': info.date, - 'sources': info.sources, - 'img_element': info.img_element, - 'alt': info.alt, - 'tags': info.tags, - 'show_hover': 'true', - 'content': info.content, - 'header_level': 2, - } %} - - {% endif %} + {% include '@components/teaser/teaser.twig' with { + 'teaser': info, + } %} {% endfor %}