Skip to content

Commit f3fdfce

Browse files
authored
Update pages/api/core.ts
1 parent d79b8e9 commit f3fdfce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pages/api/core.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,14 +88,14 @@ export async function* pageListOf(path: string, prefix = 'pages'): AsyncGenerato
8888
if (node.isFile()) {
8989
const article: ArticleMeta = { name: isMDX ? name : node.name, path, subs: [] };
9090

91-
if (isMDX) {
91+
if (isMDX)
9292
try {
9393
const meta = await frontMatterOf(`${node.path}/${node.name}`);
94+
9495
if (meta) article.meta = meta;
9596
} catch (error) {
9697
console.error(`Error reading front matter for ${node.path}/${node.name}:`, error);
9798
}
98-
}
9999

100100
yield article;
101101
} else if (node.isDirectory()) {

0 commit comments

Comments
 (0)