feat: nested dir support
This commit is contained in:
parent
9854fdec24
commit
813fd1e557
1 changed files with 1 additions and 1 deletions
|
@ -183,7 +183,7 @@ async function getEntriesByCollection(
|
|||
collectionPath: string,
|
||||
{ contentDir }: Pick<Dirs, 'contentDir'>
|
||||
): Promise<Entry[]> {
|
||||
const files = await glob(`${collectionPath}/*.{md,mdx}`);
|
||||
const files = await glob(`${collectionPath}/**/*.{md,mdx}`);
|
||||
return Promise.all(
|
||||
files.map(async (filePath) => {
|
||||
const entryKey = path.relative(collectionPath, filePath);
|
||||
|
|
Loading…
Reference in a new issue