Now that I’ve got the post order on the home page correct, I wanted to be able to have the social share/next post bar on the bottom of single posts actually direct to the next post instead of the previous one.
Turns out that’s as easy as changing a +
to a -
in the NextPost.js
file. within the const findNextPost
section, instead of adding one to the currentPostIndex
, I am now subtracting one. That solves it.
And because I document all the things I learn here, now it’s written down. For future-Ben.