Skip to content
New issue

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

Change frontmatter injection ordering #5687

Merged
merged 12 commits into from
Jan 3, 2023
Prev Previous commit
Next Next commit
chore: simplify frontmatter destructuring
  • Loading branch information
bholmesdev committed Jan 3, 2023
commit 13f990074ad05867a96b2062060fe5d5d5771fa6
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ export function remarkTitle() {
}

export function remarkDescription() {
return function (tree, { data }) {
data.astro.frontmatter.description = `Processed by remarkDescription plugin: ${data.astro.frontmatter.description}`
return function (tree, vfile) {
const { frontmatter } = vfile.data.astro;
frontmatter.description = `Processed by remarkDescription plugin: ${frontmatter.description}`
};
}