diff --git a/.changeset/neat-bats-heal.md b/.changeset/neat-bats-heal.md new file mode 100644 index 000000000000..c816116c575b --- /dev/null +++ b/.changeset/neat-bats-heal.md @@ -0,0 +1,5 @@ +--- +'@astrojs/mdx': patch +--- + +Update "Astro.props.content" -> "Astro.props.frontmatter" in README diff --git a/packages/integrations/mdx/README.md b/packages/integrations/mdx/README.md index cd795c3fb2c5..a77733589b24 100644 --- a/packages/integrations/mdx/README.md +++ b/packages/integrations/mdx/README.md @@ -195,19 +195,19 @@ title: 'My Blog Post' --- ``` -Then, you can retrieve all other frontmatter properties from your layout via the `content` property, and render your MDX using the default [``](https://docs.astro.build/en/core-concepts/astro-components/#slots): +Then, you can retrieve all other frontmatter properties from your layout via the `frontmatter` property, and render your MDX using the default [``](https://docs.astro.build/en/core-concepts/astro-components/#slots): ```astro --- // src/layouts/BaseLayout.astro -const { content } = Astro.props; +const { frontmatter } = Astro.props; --- - {content.title} + {frontmatter.title} -

{content.title}

+

{frontmatter.title}