Yuki Takei 2 лет назад
Родитель
Сommit
83fce46daa
1 измененных файлов с 0 добавлено и 5 удалено
  1. 0 5
      packages/remark-lsx/src/utils/page-node.ts

+ 0 - 5
packages/remark-lsx/src/utils/page-node.ts

@@ -80,11 +80,6 @@ export function generatePageNodeTree(rootPagePath: string, pages: IPageHasId[],
   // return root objects
   // return root objects
   const rootNodes: PageNode[] = [];
   const rootNodes: PageNode[] = [];
   Object.keys(pathToNodeMap).forEach((pagePath) => {
   Object.keys(pathToNodeMap).forEach((pagePath) => {
-    // exclude '/'
-    if (pagePath === '/') {
-      return;
-    }
-
     const parentPath = getParentPath(pagePath);
     const parentPath = getParentPath(pagePath);
 
 
     // pick up what parent doesn't exist
     // pick up what parent doesn't exist