Frontmatter

Definition

Frontmatter is metadata placed at the beginning of a markdown file, typically in YAML format, enclosed by triple dashes (---).

Common frontmatter fields: - title: Document title - date: Publication date - description: Summary - tags: Categories - author: Writer name

Frontmatter is used by static site generators (Jekyll, Hugo, Next.js) to extract metadata for SEO and organization.

Example

---
title: "My Blog Post"
date: "2025-01-01"
description: "A great article"
tags: ["markdown", "tutorial"]
---

# Content starts here

Try markshare Free

Share markdown as beautiful webpages in 3 seconds.

Get Started