parse Front-matter and yaml