In the context of .md (Markdown) files, frontmatter is a block of metadata placed at the very beginning of the file. It’s often used by static site generators like Jekyll, Hugo, or Eleventy to configure settings or define variables for the Markdown content that follows.
Frontmatter is typically written in YAML and enclosed between triple dashes (---) like this:
---
title: "My Awesome Post"
date: 2025-05-31
author: "Mason Young"
tags: ["markdown", "frontmatter", "static site"]
draft: false
---
# My Awesome Post
Here’s the main content of the markdown file.
Static site generators and markdown parsers use frontmatter to:
this page was seeded with info via ChatGPT
home
created: 2025-05-31