I have a site than has a series of second level pages, some of which have up to 20 third level pages linked from them. To save the user going back to the drop down menu and navigating down to the next sub-sub-page, I would like to have "Prev" and "Next" links down in the footer. I've done this previously in PHP with WolfCMS and several others over the years.
Grav seems to have the functionality built in, with isFirst, prevSibling, etc but I can't get it working. My code looks like:
{% if not page.isFirst %}
<span class="navprev"><a href="{{ page.prevSibling.url }}">Prev</a>
{% endif %}
The code does not display anything. Yes, I've tried it on pages which are not the first page. The Next code is also in the footer twig and has exactly the same problem.
I've also tried page.isFirst and self.page.isFirst. These always display Prev, but the URL is always for the current page. The corresponding Next functions work identically, including returning the current page.
Can anyone show me what I'm doing wrong?
Thanks, glen.