Skip to content

ButterIX v1 is out: versions, multiple languages, Ask AI, and a per-site MCP server, all built in. →

Frontmatter

The YAML frontmatter at the top of each page controls its title, URL, layout, table of contents, SEO, and agent behavior.

pages/guides/webhooks.mdx
---
title: Receive webhooks
subtitle: Verify and handle events on your server.
description: How to receive, verify, and idempotently handle Acme webhook events.
sidebar-title: Webhook
icon: lucide:webhook
keywords: [webhook, signature, idempotency]
last-updated: 2026-11-01
---

The body starts here...

Title and description

titlestring

The page heading (<h1>) and the page name in <title>. Falls back to the page name in the navigation when unset.

subtitlestring

A subtitle shown below the title. Also used as the meta description when description isn't set.

descriptionstring

Used for <meta name="description" />, og:description, the page summary in llms.txt, and the lead of the Markdown version. Falls back to subtitle, then the first few sentences of the body.

sidebar-titlestring

The title in the sidebar (sidebarTitle also works). Useful for pages with a long heading; for example, this site's home page shows as "Introduction" in the sidebar.

iconstring

Sidebar icon; icon in the navigation takes precedence. Supports Font Awesome names (rocket, fa-solid fa-bolt), lucide:<name>, image URLs, or inline <svg>; see Available icons.

icon-styleplain | tileDefault plain

Style of the sidebar icon: tile puts it in a small square; see Icon style. icon-style in the navigation takes precedence.

tagsstring | string[]

Tags next to the title in the sidebar and on the page; several rotate in turn. Use with tags-position (inline after the title or right), tags-style (background or border), tags-color (theme color by default), tags-interval (seconds, default 6) and tags-weight (max width in half-width characters); see Tags. Wins over the navigation's values field by field.

URL

slugstring

Overrides the page's full path (keeping only the locale / product / version prefix). See Navigation › Override the full path with frontmatter.

Layout and display

layoutguide | overview | reference | page | customDefault guide

Page layout:

  • guide: the default. A standard-width content column plus a table of contents on the right.
  • overview: a wider content column, suited to home and index pages (used by this site's home page).
  • reference: unconstrained content width for two-column content (the layout used by API endpoint pages).
  • page: unconstrained content width, without the table of contents on the right.
  • custom: no sidebar and no table of contents, with centered content; no page action buttons, previous / next links, or feedback. Suited to landing pages.
background-imagestring | { light, dark }

Page hero image: laid at the top of the page beneath the header (which turns into translucent frosted glass), about 840px tall, fading into the page background. A single path applies to both modes; { light, dark } applies per mode. With a hero image, cards, code blocks, accordions and similar elements turn into translucent frosted glass. Combine it with layout: custom for a welcome page with a large hero image:

---
title: Developer hub
layout: custom
background-image:
  light: /assets/hero-light.webp
  dark: /assets/hero-dark.webp
---
hide-titleboolean
Don't render the page heading (e.g. when the body draws its own title area with components).
hide-tocboolean
Hide the "On this page" table of contents on the right.
max-toc-depthnumberDefault 2
How many heading levels the table of contents includes (counting from ##): 1 shows only ##, 2 goes down to ###, and 3 goes down to ####. This site's docs.yml reference page sets it to 1.
hide-feedbackboolean
Hide "Was this page helpful?" (shown only on hosted sites).

SEO

noindexboolean
Outputs <meta name="robots" content="noindex, nofollow" />.
keywordsstring | string[]
Output as <meta name="keywords" />.
canonical-urlstring
Custom canonical URL (defaults to the page's own absolute URL; pages in older versions point to the current version by default).
og:titlestring
Social sharing title; also replaces the page name in <title>.
og:descriptionstring
Social sharing description (description takes precedence).
og:imagestring
Social sharing image; overrides seo.og-image.
last-updatedstring | date
Last updated time. Shown at the bottom of the page and output as article:modified_time and dateModified in structured data. This page sets it.

Review

ownerstring | string[]
Who is responsible; only your team sees it.
verifieddate | false
When the content was last confirmed; false marks the page as possibly outdated.
review-everystring
Review period, such as 90d or 6m.

See Page review.

Changelog entries

Files in the changelog directory also support the fields below; see Changelog for details:

tagsstring[]
Entry tags, filterable on the index page and output as category in RSS.
descriptionstring
RSS summary; defaults to the first part of the body.
changelog/2026-11-20-mcp.mdx
---
title: Every site ships with an MCP server
tags: [AI, Agent]
---

Tools like Claude Code and Cursor can now search your docs directly...

Custom fields and variables

Fields in frontmatter that aren't listed here are kept but don't affect rendering. For values you want to reuse in the body, declare them with export const; see Reusable snippets and variables.