parse the front-matter header