switched to mdx

This commit is contained in:
Maggie Appleton 2021-09-05 16:09:03 +01:00
parent 1d7be78e38
commit 67b393a1f0
12 changed files with 16 additions and 9 deletions

View file

@ -6,7 +6,7 @@ export const GARDENS_PATH = path.join(process.cwd(), "posts", "gardens");
export const TOOLS_PATH = path.join(process.cwd(), "posts", "tools");
// patternFilePath is the list of all mdx files inside the POSTS_PATH directory
export const gardensFilePath = fs
export const gardenFilePath = fs
.readdirSync(GARDENS_PATH)
// Only include md(x) files
.filter((path) => /\.md?$/.test(path));
.filter((path) => /\.mdx?$/.test(path));