remove duplicate bufio.Reader
move front matter logic to frontmatter.go