use yaml package to write (as well as read) the post yaml file