Added pagination to posts and made a simple post  index file