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
1.0.1
None
yarn
Mac
It seems frontmatter is empty when defining remarkPlugins.
remarkPlugins
Setting arbitrary frontmatter is easy with remarkPlugins, but there seems to be no way to get existing frontmatter. For example, this will not work:
import authorData from './data/authors.mjs'; export function addAuthorRemarkPlugin() { return function (tree, post) { const author = authorData[post.data.astro.frontmatter.author]; post.data.astro.frontmatter.author = author; } }
https://github.com/shipshapecode/website-astro
The text was updated successfully, but these errors were encountered:
Ah, third request I've seen for this! Definitely think this is worth implementing. Will make a PR soon 👍
Sorry, something went wrong.
Marking as duplicate of this to track in one place #4429. Still on my todos!
bholmesdev
No branches or pull requests
What version of
astro
are you using?1.0.1
Are you using an SSR adapter? If so, which one?
None
What package manager are you using?
yarn
What operating system are you using?
Mac
Describe the Bug
It seems frontmatter is empty when defining
remarkPlugins
.Setting arbitrary frontmatter is easy with remarkPlugins, but there seems to be no way to get existing frontmatter. For example, this will not work:
Link to Minimal Reproducible Example
https://github.com/shipshapecode/website-astro
Participation
The text was updated successfully, but these errors were encountered: