adding posts to index page