How to Edit and Validate Markdown Front Matter for Hugo, Jekyll and Astro
Understand YAML and TOML front matter, avoid the date, boolean and tag mistakes that break static sites, and fix many Markdown files at once.

How to Edit and Validate Markdown Front Matter for Hugo, Jekyll and Astro
Every post on a static site begins with a small block of metadata called front matter. It decides the title in the browser tab, the date the post is sorted by, the tags it appears under and whether it is published at all. Because the block is typed by hand, small mistakes are common, and some of them do not cause an error but quietly change how the site behaves. This guide explains the rules and shows how to check and fix many files at once with the free Markdown Front Matter Editor.
YAML and TOML in two minutes
YAML front matter sits between two lines of three dashes. Each line is a key, a colon and a value. Lists can be written in square brackets or as indented lines starting with a dash. TOML front matter sits between two lines of three plus signs and uses an equals sign instead of a colon. Hugo understands both; Jekyll, Astro, Docusaurus and Eleventy use YAML.
The type of a value matters. In both formats true and false without quotes are booleans, numbers without quotes are numbers, and a date written as 2024-05-01 is a date. Put quotes around any of them and they become text.
The mistakes that break sites
Quoted booleans. draft written with quotes around false is a non-empty string, which many generators treat as true. The post silently stays unpublished.
Impossible dates. Swapping day and month gives values such as 2024-31-03. Depending on the generator the build fails or the date is ignored and the post sorts to the wrong place.
Inconsistent tags. Go, go and golang create three tag pages for one topic. Stray spaces create further duplicates.
Missing required fields. Astro content collections, for example, refuse to build when a schema field such as description is missing.
Using the editor
- Pick the template for your generator: Hugo, Jekyll, Astro, Docusaurus or Eleventy. The template defines which fields are required and what type each should have.
- Open your Markdown files, or press Open a folder and choose the content folder. Each file in the list is marked valid, with warnings or with errors.
- Select a file to see its fields as a form. Problems appear in red or amber under the field they concern. Date fields offer a Today button, lists are edited as comma-separated text, and any extra fields your theme uses are shown below the template fields.
- Switch to File text when you prefer to edit the raw block.
- Press Fix common problems to turn quoted booleans and numbers into real values, split comma-separated tag strings into lists and remove duplicate tags.
- Use Batch edit to set, remove or rename a field, or add or remove a list item, in every file or only in files with errors.
- Download one file, or Download all to get a ZIP with the original folder structure.
Every change, including batch changes, can be undone.
Converting between YAML and TOML
Each file can be switched between the two formats, which is useful when a Hugo theme's examples use one and your site uses the other. Values keep their types through the conversion. Comments inside the block are lost when it is rewritten, so convert heavily commented files with care.
Good habits
Decide on a small, fixed list of tags and keep it in your repository; it is easier than cleaning up later. Use ISO dates everywhere, they sort correctly as text and every generator understands them. Keep descriptions under about 155 characters so search engines can show them in full. And run a check like this before each release, especially after several people have added posts.
Privacy
Your files are read and written in the browser tab. Nothing is uploaded, and the open files are stored only in local storage on your device so a reload does not lose your work.



