mirror of
https://github.com/Unkn0wnCat/KevinK.dev.js.git
synced 2025-06-05 20:22:02 +02:00
Bump MDX to v2
This commit is contained in:
parent
0b5211a08f
commit
e82547e417
6 changed files with 1072 additions and 1214 deletions
|
@ -42,6 +42,9 @@ exports.createPages = async ({ actions, graphql, reporter }) => {
|
|||
language
|
||||
published(formatString: "YYYY/MM")
|
||||
}
|
||||
internal {
|
||||
contentFilePath
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -147,7 +150,7 @@ exports.createPages = async ({ actions, graphql, reporter }) => {
|
|||
}/${node.childMdx.frontmatter.published}/${
|
||||
node.childMdx.frontmatter.url
|
||||
}`,
|
||||
component: blogTemplate,
|
||||
component: `${blogTemplate}?__contentFilePath=${node.childMdx.internal.contentFilePath}`,
|
||||
context: {
|
||||
mdxId: node.childMdx.id,
|
||||
lang: node.childMdx.frontmatter.language,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue