📄Front Matter
Also known as YAML Front Matter, Frontmatter
A block of settings at the top of a file, between two lines of dashes. It holds the title, date and tags.
Think of it like
Think of it like the sticky note on top of a homework sheet. It holds the name and date, not the answers.
Example
Lucy writes a blog post in Markdown. Its front matter gives the title and the date, and her site builder puts both on the page.
Why it matters
It keeps the facts about a page in the same file as the page. Nothing gets lost in a separate list.
Definition
Example code
markdown
---
title: My First Post
date: 2026-03-07
tags: [travel, food]
---
# My First PostCommon mistake
Key takeaways
- 1Top of the file. It must come before anything else.
- 2Between dashes. Three dashes open it and close it.
- 3Facts, not content. The title, date and tags live here.