{% for newsItem in newsList %}
{# news detail link #}
{% set detailLink = path('newslist', {
id: newsItem.id,
headline: toUri(newsItem.headline),
path: 'news-url-path'|trans
}) %}
{# news detail link #}
<div class="teaser news-overview-teaser news-teaser">
{% for fieldItem in newsItem.content %}
{% if fieldItem.type == "Gallery" %}
{# {% for image in fieldItem.GalleryImg.items %}#}
{% if fieldItem.GalleryImg.items | length > 0 and fieldItem.GalleryImg.items[0] %}
<a href="{{ detailLink }}">{{ fieldItem.GalleryImg.items[0].thumbnail('NewsTeaser').html | raw }}</a>
{% endif %}
{#{% endfor %}#}
{% endif %}
{% endfor %}
<div class="content con-teaser ">
<div class="date flex gap-10">
<svg width="13" height="14.333" viewBox="0 0 13 14.333">
<g id="Icon_feather-calendar" data-name="Icon feather-calendar"
transform="translate(0.5 0.5)">
<path id="Pfad_4321" data-name="Pfad 4321"
d="M5.833,6h9.333A1.33,1.33,0,0,1,16.5,7.328V16.62a1.33,1.33,0,0,1-1.333,1.328H5.833A1.33,1.33,0,0,1,4.5,16.62V7.328A1.33,1.33,0,0,1,5.833,6Z"
transform="translate(-4.5 -4.615)" fill="none"
stroke="#6b675d"
stroke-linecap="round" stroke-linejoin="round"
stroke-width="1"/>
<path id="Pfad_4322" data-name="Pfad 4322" d="M24,3V5.771"
transform="translate(-15.333 -3)" fill="none" stroke="#6b675d"
stroke-linecap="round" stroke-linejoin="round"
stroke-width="1"/>
<path id="Pfad_4323" data-name="Pfad 4323" d="M12,3V5.771"
transform="translate(-8.667 -3)" fill="none" stroke="#6b675d"
stroke-linecap="round" stroke-linejoin="round"
stroke-width="1"/>
<path id="Pfad_4324" data-name="Pfad 4324" d="M4.5,15h12"
transform="translate(-4.5 -9.667)" fill="none"
stroke="#6b675d"
stroke-linecap="round" stroke-linejoin="round"
stroke-width="1"/>
</g>
</svg>
<p>{{ newsItem.date | date('d.m.Y') }}</p>
</div>
<p class="teaser-headline title-headline"><a href="{{ detailLink }}">{{ newsItem.headline | u.truncate(35, '...') }}</a></p>
<div class="basic colored no-margin secondary">
<a href="{{ detailLink }}"><p>{{ newsItem.intro | u.truncate(125, '...') }}</p></a>
</div>
<div class="buttons-row no-margin">
<button class="primary accent">
<a href="{{ detailLink }}">
{{ 'Mehr'|trans }}
<svg width="15.708" height="10.709" viewBox="0 0 15.708 10.709">
<g transform="translate(0 0.354)">
<g transform="translate(0)">
<path class="line" d="M7.5,18h15" transform="translate(-7.5 -13)" fill="none" stroke="#b76e2b" stroke-linejoin="round" stroke-width="1"/>
<path class="arrow" d="M18,7.5l5.026,5L18,17.5" transform="translate(-8.027 -7.5)" fill="none" stroke="#b76e2b" stroke-width="1"/>
</g>
</g>
</svg>
</a>
</button>
</div>
</div>
</div>
{% endfor %}
{# next page #}
{% set nextPageAjax = path('news-list', { page: paginationVariables.current + 1 }) %}
{# previous page #}
{# {% set previousPageAjax = path('news-list', {page: paginationVariables.current - 1}) %} #}
{# {% if paginationVariables.previous is defined %}
<a href="{{ previousPageAjax }}">Previous</a>
{% endif %} #}
{% if paginationVariables.next is defined %}
{#<div class="load-more ajaxListeButton moreNewsLink" id="newsButtonContainer" style="width: 0; height: 0; pointer-events: none; display: none;">#}
<a href="{{ nextPageAjax }}" id="moreNewsLink" title="load more" class="button primary ajax-btn" data-url="{{ nextPageAjax }}">{#{{ 'mehr_laden_newsAjaxLink' | trans }}#}</a>
{#</div>#}
{% endif %}