Add pagination to posts and projects