create an index view for posts