What is Markdown Front Matter Generator?
Front matter is a block of YAML or TOML at the top of a Markdown file that provides metadata to the static site generator. It tells the generator what layout to use, what the page title is, when it was published, and which tags or categories apply. Front matter is the bridge between raw Markdown content and the generated HTML page.
Quick answer
Front matter is YAML or TOML metadata at the top of a Markdown file that tells your static site generator the page title, layout, publish date, tags, and other settings. It is separated from content by triple dashes.
Limitations
- The specific front matter fields vary by static site generator. Jekyll, Hugo, Astro, and 11ty each use different field names and conventions.
- This tool generates YAML format only. Generators that prefer TOML or JSON front matter will need a different format.
- Front matter values are case-sensitive in most static site generators. layout: post and Layout: post are treated as different fields.
How to use this tool
- Enter the page title, publish date, and meta description for your post or page.
- Add tags and an author name if your site supports them. Leave these blank to omit.
- Set the layout to match your theme's template name, such as post or page.
- Copy the generated front matter block and paste it at the very top of your Markdown file.
What you can use it for
- Create consistent front matter for a batch of new blog posts.
- Generate front matter for a static site migration from WordPress to Jekyll or Hugo.
- Prepare draft front matter with draft: true so the content stays unpublished during review.