Unverified Commit 6c422514 authored by Robbert Stevens's avatar Robbert Stevens Committed by GitHub

docs: update MDX metadata docs (#58396)

parent afdd5043
...@@ -304,10 +304,10 @@ Frontmatter is a YAML like key/value pairing that can be used to store data abou ...@@ -304,10 +304,10 @@ Frontmatter is a YAML like key/value pairing that can be used to store data abou
- [remark-frontmatter](https://github.com/remarkjs/remark-frontmatter) - [remark-frontmatter](https://github.com/remarkjs/remark-frontmatter)
- [gray-matter](https://github.com/jonschlinkert/gray-matter). - [gray-matter](https://github.com/jonschlinkert/gray-matter).
To access page metadata with `@next/mdx`, you can export a meta object from within the `.mdx` file: To access page metadata with `@next/mdx`, you can export a metadata object from within the `.mdx` file:
```mdx ```mdx
export const meta = { export const metadata = {
author: 'John Doe', author: 'John Doe',
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment