Updates YAML frontmatter.