Skip to content

Commit c28677c

Browse files
authored
add custom frontmatter (#1480)
1 parent 1fc471d commit c28677c

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

organize/pages.mdx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,13 @@ Each page is an MDX file, which combines Markdown content with React components
1010

1111
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.
1212

13-
Use metadata to control:
13+
Use frontmatter to control:
1414

1515
- Page titles and descriptions
1616
- Sidebar titles, icons, and tags
17+
- Page layouts
18+
- SEO meta tags
19+
- Custom metadata
1720

1821
<ResponseField name="title" type="string" required>
1922
The title of your page that appears in navigation and browser tabs.
@@ -47,6 +50,10 @@ Use metadata to control:
4750
A tag that appears next to your page title in the sidebar.
4851
</ResponseField>
4952

53+
<ResponseField name="<custom>" type="string">
54+
Any valid YAML frontmatter. For example, `product: "API"` or `version: "1.0.0"`.
55+
</ResponseField>
56+
5057
```yaml Example YAML frontmatter wrap
5158
---
5259
title: "About frontmatter"

0 commit comments

Comments
 (0)