Skip to content

Commit

Permalink
new: add tip on data.astro.frontmatter default
Browse files Browse the repository at this point in the history
  • Loading branch information
bholmesdev committed Dec 28, 2022
1 parent 608510e commit 2cc7d70
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/pages/en/guides/markdown-content.md
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,12 @@ You can add frontmatter properties to all of your Markdown and MDX files by usin
}
```

:::tip
<Since v="2.0.0" />

`data.astro.frontmatter` contains all properties from a given Markdown or MDX document. This allows you to modify existing frontmatter properties, or compute new properties based on other properties.
:::

2. Apply this plugin to your `markdown` or `mdx` integration config:

```js title="astro.config.mjs" "import { exampleRemarkPlugin } from './example-remark-plugin.mjs';" "remarkPlugins: [exampleRemarkPlugin],"
Expand Down

0 comments on commit 2cc7d70

Please sign in to comment.