Grav CMS: previous is next
I'm using Grav CMS for a new project and am building my own theme for it.
When adding links to the previous and next blog posts, I noticed something strange: When I am on the first blog post (PageCollection::isFirst($page.path) == true), $collection.nextSibling() is empty.
Also, when I'm on the last page, $collection.prevSibling() is empty.
It turns out that those two methods do the opposite as I thought:
Other people were also confused, but Grav is used too much now that changing the behavior would break many many pages.