Skip to content

Commit

Permalink
chore: changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
bholmesdev committed May 30, 2023
1 parent d3f697a commit 16d8535
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .changeset/metal-bugs-drive.md
@@ -0,0 +1,17 @@
---
'@astrojs/markdoc': minor
'astro': patch
---

Remove the auto-generated `$entry` variable for Markdoc entries. To access frontmatter as a variable, you can pass `entry.data` as a prop where you render your content:

```astro
---
import { getEntry } from 'astro:content';
const entry = await getEntry('docs', 'why-markdoc');
const { Content } = await entry.render();
---
<Content frontmatter={entry.data} />
```

0 comments on commit 16d8535

Please sign in to comment.