fix: 构建失败。
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2022-10-07 23:09:30 +08:00
parent f1bbe539a7
commit 2ee5810930
3 changed files with 27 additions and 58 deletions

View File

@ -62,7 +62,7 @@ export async function getFileBySlug<T>(type: 'authors' | 'blog', slug: string |
source,
// mdx imports can be automatically source from the components directory
cwd: path.join(root, 'components'),
xdmOptions(options, frontmatter) {
mdxOptions(options, frontmatter) {
// this is the recommended way to add custom remark/rehype plugins:
// The syntax might look weird, but it protects you in case we add/remove
// plugins in the future.