Skip to content

Commit

Permalink
update meta variable to metadata variable so that the meta data updat…
Browse files Browse the repository at this point in the history
…es with mdx
  • Loading branch information
robbertstevens committed Nov 13, 2023
1 parent dc59d3c commit 772a172
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
- [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
export const meta = {
export const metadata = {
author: 'John Doe',
}

Expand Down

0 comments on commit 772a172

Please sign in to comment.