fixing the pagination issue to only display pagination if there are multiple pages of posts to display, closes #1.