list of post in index html and organize posts in dir posts by date