Why choose this method over frontmatter? While frontmatter is a convenient way to set metadata in your files, it can cause problems with syntax hilighters, linters, and other tools which expect your source files to contain only valid syntax from the language they are written in. (Frontmatter isn't valid CSS, HTML, JavaScript, etc.) Putting your metadata in separate files eliminates these problems.