output all posts as a list in the main page