Flatten post file structure, store post metadata in markdown files