Added pagination for posts

This adds pagination for the posts page and the posts by category page.