diff options
Diffstat (limited to '.changeset/metal-bugs-drive.md')
-rw-r--r-- | .changeset/metal-bugs-drive.md | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/.changeset/metal-bugs-drive.md b/.changeset/metal-bugs-drive.md deleted file mode 100644 index 16b4f6b19..000000000 --- a/.changeset/metal-bugs-drive.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -'@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} /> -``` |