Page metadata
Every page starts with frontmatter, the YAML metadata enclosed by---
at the beginning of a file. This metadata defines how your page appears and behaves.
Use metadata to control:
- Page titles and descriptions
- Sidebar titles, icons, and tags
The title of your page that appears in navigation and browser tabs.
A brief description of what this page covers. Appears under the title and improves SEO.
A short title that displays in the sidebar navigation.
The icon to display.Options:
- Font Awesome icon name
- Lucide icon name
- JSX-compatible SVG code wrapped in curly braces
- URL to an externally hosted icon
- Path to an icon file in your project
- Convert your SVG using the SVGR converter.
- Paste your SVG code into the SVG input field.
- Copy the complete
<svg>...</svg>
element from the JSX output field. - Wrap the JSX-compatible SVG code in curly braces:
icon={<svg ...> ... </svg>}
. - Adjust
height
andwidth
as needed.
The Font Awesome icon style. Only used with Font Awesome icons.Options:
regular
, solid
, light
, thin
, sharp-solid
, duotone
, brands
.A tag that appears next to your page title in the sidebar.
Example YAML frontmatter
Page mode
Control how your page displays with themode
setting.
Default
If no mode is defined, defaults to a standard layout with a sidebar navigation and table of contents.Wide
Wide mode hides the table of contents. This is useful for pages that do not have any headings or if you prefer to use the extra horizontal space.Custom
Custom mode provides a minimalist layout that removes all elements except for the top navbar. Custom mode is a blank canvas to create landing pages or any other unique layouts that you want to have minimal navigation elements for.Center
Center mode removes the sidebar and table of contents, centering the content. This is useful for changelogs or other pages where you want to emphasize the content.API pages
Create interactive API playgrounds by adding an API specification to your frontmatter,api
or openapi
.
External links
Link to external sites directly from your navigation with theurl
metadata.
Search engine optimization
Most SEO meta tags are automatically generated. You can set SEO meta tags manually to improve your site’s SEO, social sharing, and browser compatibility.Meta tags with colons must be wrapped in quotes.
Internal search keywords
Enhance a specific page’s discoverability in the built-in search by providingkeywords
in your metadata. These keywords won’t appear as part of the page content or in search results, but users that search for them will be shown the page as a result.