Adds next and prev links to posts