{% set nextPost = get_next_post(page.post.sortOrder|default(null)) %}
{% set previousPost = get_previous_post(page.post.sortOrder|default(null)) %}
{% if nextPost is not null or previousPost is not null %}
<section class="parent-container bg-grey py-5">
<div class="container-fluid">
<div class="row justify-content-around">
<div class="col-xxl-10 col-xl-10 col-12">
<div class="row">
<div class="col-6">
{% if previousPost is not null %}
<a href="{{ previousPost.page.translations.pl.url|default('#') }}" class="fw-bold f-24 previous-blog">
< poprzedni wpis</a>
<p class="mt-3">{{ previousPost.translations.pl.head|default('') }}</p>
{% endif %}
</div>
<div class="col-6 text-end">
{% if nextPost is not null %}
<a href="{{ nextPost.page.translations.pl.url|default('#') }}" class="fw-bold f-24 next-blog">
następny wpis ></a>
<p class="mt-3">{{ nextPost.translations.pl.head|default('') }}</p>
{% endif %}
</div>
</div>
</div>
</div>
</div>
</section>
{% endif %}