Conditionally shows next and previous links now

Only shows them if there is a next one, or a previous one.