{% if tease_lg %} <a href="{{post.url}}" class="tease"> <p class="tease__title">{{post.title}}</p> <div class="tease__img"> {% if post.featured_image %} {% include "../layout/partials/picture.twig" with {"image": post.featured_image } %} {% endif %} </div> <div class="tease__excerpt"> <p>{{post.excerpt}}</p> </div> </a> {% else %} <a href="{{post.url}}" class="tease tease--sm"> <div class="tease__img"> {% if post.featured_image %} {% include "../layout/partials/picture.twig" with {"image": post.featured_image } %} {% endif %} </div> <div class="tease__main"> <div class="tease-main-header"> {% set parent_post_term = post.terms[0] %} {% set post_term = post.terms[1] %} <span>{{taxonomies[~type~].terms[~parent_post_term~].items[~post_term~].name}}</span> <span>{{post.date|date('d.m.Y')}}</span> </div> <p class="tease-main-title">{{post.title}}</p> </div> </a> {% endif %}