We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d185a6f + 9461fab commit 7ddacd1Copy full SHA for 7ddacd1
data/src/utils/data.ts
@@ -34,7 +34,10 @@ export const getDataEntry = (path: string, include?: string[]) => {
34
}
35
36
// Read content.md
37
- if (!include || include.includes("content"))
+ if (
38
+ (!include || include.includes("content")) &&
39
+ fse.existsSync(`${path}/content.md`)
40
+ )
41
entry = {
42
...entry,
43
content: String(fse.readFileSync(`${path}/content.md`)),
0 commit comments