diff --git a/source/_patterns/04-components/profile/profile.twig b/source/_patterns/04-components/profile/profile.twig index 73e16149b4ada908f4e4e0d7b23ffdb42fb172e0..cccbda054a00f75f2a001bbf016e2be4fe4802bf 100644 --- a/source/_patterns/04-components/profile/profile.twig +++ b/source/_patterns/04-components/profile/profile.twig @@ -1,29 +1,11 @@ <div class="uw-profiles"> - {% for profile in profiles %} - <div class="uw-profile"> - <div class="uw-profile__infobar"> - {% if profile.image %} - <div class="uw-profile__image"> - <a href="{{ profile.url }}"> - <img src="{{ profile.image.url }}" alt="{{ profile.image.alt }}" /> - </a> - </div> - {% endif %} - <div class="uw-profile__personal"> - <div class="uw-profile__title"> - <h2><a href="{{ profile.url }}">{{ profile.title }}</a></h2> - </div> - <div class="uw-profile__position"> - {{ profile.position }} - </div> - </div> - </div> - <div class="uw-profile__affiliation"> - {{ profile.affiliation }} - </div> - <div class="uw-profile__summary"> - {{ profile.summary }} - </div> - </div> - {% endfor %} + {% embed '@components/content-grid-list/content-grid-list.twig' %} + {% block content %} + {% for profile in profiles %} + {% include '@components/card/card--teaser/card--teaser.twig' with { + teaser: profile, + } %} + {% endfor %} + {% endblock %} + {% endembed %} </div> \ No newline at end of file