added previous and next page links to all posts