trim frontmatter