---
title: Frontmatter
subtitle: The YAML frontmatter at the top of each page controls its title, URL, layout, table of contents, SEO, and agent behavior.
description: Every MDX page frontmatter field — title, subtitle, description, slug, sidebar-title, icon, icon-style, tags, layout, hide-toc, max-toc-depth, hide-nav-links, hide-feedback, hide-title, noindex, keywords, canonical-url, og fields, and last-updated.
last-updated: 2026-11-20
keywords: [frontmatter, page metadata, SEO, layout]
---

```mdx title="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

<ParamField path="title" type="string">
  The page heading (`<h1>`) and the page name in `<title>`. Falls back to the `page` name in the navigation when unset.
</ParamField>

<ParamField path="subtitle" type="string">
  A subtitle shown below the title. Also used as the meta description when `description` isn't set.
</ParamField>

<ParamField path="description" type="string">
  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.
</ParamField>

<ParamField path="sidebar-title" type="string">
  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.
</ParamField>

<ParamField path="icon" type="string">
  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](../components/icon.mdx#available-icons).
</ParamField>

<ParamField path="icon-style" type="plain | tile" default="plain">
  Style of the sidebar icon: `tile` puts it in a small square; see [Icon style](./navigation.mdx#icon-style). `icon-style` in the navigation takes precedence.
</ParamField>

<ParamField path="tags" type="string | 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](./navigation.mdx#tags). Wins over the navigation's values field by field.
</ParamField>

## URL

<ParamField path="slug" type="string">
  Overrides the page's full path (keeping only the locale / product / version prefix). See [Navigation › Override the full path with frontmatter](./navigation.mdx#override-the-full-path-with-frontmatter).
</ParamField>

## Layout and display

<ParamField path="layout" type="guide | overview | reference | page | custom" default="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.
</ParamField>

<ParamField path="background-image" type="string | { 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:

  ```yaml
  ---
  title: Developer hub
  layout: custom
  background-image:
    light: /assets/hero-light.webp
    dark: /assets/hero-dark.webp
  ---
  ```
</ParamField>

<ParamField path="hide-title" type="boolean">Don't render the page heading (e.g. when the body draws its own title area with components).</ParamField>
<ParamField path="hide-toc" type="boolean">Hide the "On this page" table of contents on the right.</ParamField>
<ParamField path="max-toc-depth" type="number" default="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`.</ParamField>
<ParamField path="hide-nav-links" type="boolean">Hide the previous / next links and footer action area at the bottom of the page.</ParamField>
<ParamField path="hide-feedback" type="boolean">Hide "Was this page helpful?" (shown only on hosted sites).</ParamField>

## SEO

<ParamField path="noindex" type="boolean">Outputs `<meta name="robots" content="noindex, nofollow">`.</ParamField>
<ParamField path="keywords" type="string | string[]">Output as `<meta name="keywords">`.</ParamField>
<ParamField path="canonical-url" type="string">Custom canonical URL (defaults to the page's own absolute URL; pages in older versions point to the current version by default).</ParamField>
<ParamField path="og:title" type="string">Social sharing title; also replaces the page name in `<title>`.</ParamField>
<ParamField path="og:description" type="string">Social sharing description (`description` takes precedence).</ParamField>
<ParamField path="og:image" type="string">Social sharing image; overrides `seo.og-image`.</ParamField>
<ParamField path="last-updated" type="string | 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.</ParamField>

## Review

<ParamField path="owner" type="string | string[]">Who is responsible; only your team sees it.</ParamField>
<ParamField path="verified" type="date | false">When the content was last confirmed; `false` marks the page as possibly outdated.</ParamField>
<ParamField path="review-every" type="string">Review period, such as `90d` or `6m`.</ParamField>

See [Page review](../features/page-review.mdx).

## Changelog entries

Files in the changelog directory also support the fields below; see [Changelog](./changelog.mdx#write-entries) for details:

<ParamField path="tags" type="string[]">Entry tags, filterable on the index page and output as `category` in RSS.</ParamField>
<ParamField path="description" type="string">RSS summary; defaults to the first part of the body.</ParamField>

```mdx title="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](../writing/snippets.mdx#page-variables).
