Fix: YAML frontmatter overwrites file contents