Fixes previous/next navigation on first and last posts

Magic.