Added pagination to the posts page.