<br><br>
{% set previous = sulu_content_load(content.previousArticle, {'title': 'title', 'url': 'url', 'image': 'image', 'date': 'date'}) %}
{% set next = sulu_content_load(content.nextArticle, {'title': 'title', 'url': 'url', 'image': 'image', 'date': 'date'}) %}
<div
class="grid sm:grid-cols-2 border divide-y sm:divide-y-0 divide-y-reverse sm:divide-x border-gray divide-gray text-blue mx-auto max-w-[928px]">
{# Prev #}
<div
class="prev-news relative py-6 px-8 hover:bg-blue focus-within:bg-blue hover:text-white focus-within:text-white duration-300 order-1 sm:order-none">
<a class="absolute inset-0 z-10 text-[0px] outline-none"
href="{{ sulu_content_path(previous.content.url) }}">
{{ content.previousText }}
</a>
<div class="flex items-center gap-[10px]">
<svg class="w-6 h-2">
<use xlink:href="#arrow-prev"></use>
</svg>
<span>{{ content.previousText }}</span>
</div>
<div class="flex gap-3 mt-3">
<div class="w-20 h-20 flex-shrink-0">
{# Image size 100*100 #}
{% if previous.content.image|length > 0 %}
{% set image = previous.content.image.thumbnails['100x100'] %}
<img class="w-full h-full object-cover"
src="{{ image }}"
alt="{{ previous.content.title }}"
loading="lazy">
{% endif %}
</div>
<div>
<p class="title text-xl">{{ previous.content.title }}</p>
<time class="block text-sm mt-3 whitespace-nowrap">{{ previous.content.date|date('d M, Y') }}</time>
</div>
</div>
</div>
{# Next #}
<div
class="next-news relative py-6 px-8 hover:bg-blue focus-within:bg-blue hover:text-white focus-within:text-white duration-300">
<a class="absolute inset-0 z-10 text-[0px] outline-none"
href="{{ sulu_content_path(next.content.url) }}">
{{ content.nextText }}
</a>
<div class="flex justify-end items-center gap-[10px]">
<span>{{ content.nextText }}</span>
<svg class="w-6 h-2">
<use xlink:href="#arrow-next"></use>
</svg>
</div>
<div class="flex gap-3 mt-3">
<div>
<p class="title text-xl">{{ next.content.title }}</p>
<time class="block text-sm mt-3 whitespace-nowrap">{{ next.content.date|date('d M, Y') }}</time>
</div>
<div class="w-20 h-20 flex-shrink-0">
{# Image size 100*100 #}
{% if next.content.image|length > 0 %}
{% set image = next.content.image.thumbnails['100x100'] %}
<img class="w-full h-full object-cover"
src="{{ image }}"
alt="{{ next.content.title }}"
loading="lazy">
{% endif %}
</div>
</div>
</div>