mirror of
https://github.com/MaggieAppleton/digital-gardeners.git
synced 2025-09-24 17:13:39 +02:00
fixed next images, renamed posts to gardens
This commit is contained in:
parent
131130785e
commit
d6cf6d10fc
21 changed files with 58 additions and 28 deletions
|
@ -1,11 +1,11 @@
|
|||
import fs from "fs";
|
||||
import path from "path";
|
||||
|
||||
// POSTS_PATH is useful when you want to get the path to a specific file
|
||||
// GARDENS_PATH is useful when you want to get the path to a specific file
|
||||
export const GARDENS_PATH = path.join(process.cwd(), "gardens");
|
||||
export const TOOLS_PATH = path.join(process.cwd(), "tools");
|
||||
|
||||
// patternFilePath is the list of all mdx files inside the POSTS_PATH directory
|
||||
// patternFilePath is the list of all mdx files inside the GARDENS_PATH directory
|
||||
export const gardenFilePath = fs
|
||||
.readdirSync(GARDENS_PATH)
|
||||
// Only include md(x) files
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue