Added pagination to posts index