Added pagination to Home and post index