Skip to content
Doculite

Command Palette

Search for a command to run...

GitHub

Frontmatter

Reference for MDX frontmatter fields.

Every MDX file starts with a YAML frontmatter block between --- delimiters.

Required Fields

---
title: Page Title
---

The title field is the only required field. It appears in the page header, sidebar, search results, and browser tab.

Optional Fields

---
title: Page Title
description: A brief description of this page.
order: 1
published: true
---

Field Reference

FieldTypeDefaultDescription
titlestringrequiredPage title (max 120 characters)
descriptionstringDescription for SEO and search (max 300 characters)
ordernumber999Sort order within its directory
publishedbooleantrueSet to false to hide from production

Ordering

Pages are sorted by order value. Use increments of 1 (1, 2, 3...) for easy reordering later.

Unpublished pages (published: false) are excluded from the sidebar, search, and pagination. They still render if accessed directly during development.