Yuki Takei %!s(int64=2) %!d(string=hai) anos
pai
achega
83fce46daa
Modificáronse 1 ficheiros con 0 adicións e 5 borrados
  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
   const rootNodes: PageNode[] = [];
   Object.keys(pathToNodeMap).forEach((pagePath) => {
-    // exclude '/'
-    if (pagePath === '/') {
-      return;
-    }
-
     const parentPath = getParentPath(pagePath);
 
     // pick up what parent doesn't exist