Frontmatter
The YAML frontmatter at the top of each page controls its title, URL, layout, table of contents, SEO, and agent behavior.
---
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
The page heading (<h1>) and the page name in <title>. Falls back to the page name in the navigation when unset.
A subtitle shown below the title. Also used as the meta description when description isn't set.
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.
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.
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.
Style of the sidebar icon: tile puts it in a small square; see Icon style. icon-style in the navigation takes precedence.
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
Overrides the page's full path (keeping only the locale / product / version prefix). See Navigation › Override the full path with frontmatter.
Layout and display
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.
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
---##): 1 shows only ##, 2 goes down to ###, and 3 goes down to ####. This site's docs.yml reference page sets it to 1.SEO
article:modified_time and dateModified in structured data. This page sets it.Review
See Page review.
Changelog entries
Files in the changelog directory also support the fields below; see Changelog for details:
---
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.