Hi,
I have a blog page and children of this page which are posts of my blog feed.
On my blog page I manage to call and display all the posts.
When I'm on a specific post, I would like to get the next post url. But I don't manage to display it so far.
Here's the code I have in the end of my single post template :
{% set collection = page.collection() %}
{% if not collection.isFirst(page.path) %}
<a class="nav nav-prev" href="{{ collection.nextSibling(page.path).url }}"> prev </a>
{% endif %}
{% if not collection.isLast(page.path) %}
<a class="nav nav-next" href="{{ collection.prevSibling(page.path).url }}"> next </a>
{% endif %}
Thank you very much for your help