added a post and its dir