We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
astro
2.0.0-beta.2
None
npm
Linux
When using content collections with Astro v2 beta, I'm unable to access frontmatter by a remark plugin.
const { remarkPluginFrontmatter } = await post.render(); /* remarkPluginFrontmatter is undefined */
With Astro v.1.9 this works fine when using injectedFrontmatter. See blog.astro page in repro.
injectedFrontmatter
blog.astro
https://stackblitz.com/edit/github-a5wsjy
The text was updated successfully, but these errors were encountered:
Looks like this was changed at #5687
astro/packages/astro/src/content/internal.ts
Line 143 in c2a3293
But I can't seem to find where mod.frontmatter would originate from
mod.frontmatter
Sorry, something went wrong.
@bluwy It seems to be because that the frontmatter property is not exported in the loader of vite-plugin-content-assets.
frontmatter
vite-plugin-content-assets
astro/packages/astro/src/content/vite-plugin-content-assets.ts
Line 37 in 02ba7c2
Successfully merging a pull request may close this issue.
What version of
astro
are you using?2.0.0-beta.2
Are you using an SSR adapter? If so, which one?
None
What package manager are you using?
npm
What operating system are you using?
Linux
Describe the Bug
When using content collections with Astro v2 beta, I'm unable to access frontmatter by a remark plugin.
With Astro v.1.9 this works fine when using
injectedFrontmatter
.See
blog.astro
page in repro.Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-a5wsjy
Participation
The text was updated successfully, but these errors were encountered: