@@ -180,12 +180,14 @@ export function getLinksinSubdirs(path) {
180180 }
181181 const fileContents = fs.readFileSync(e, "utf8");
182182 const { data } = matter(fileContents, options);
183− get(fileTree, keys, false).pages.push({
184− title: data.title,
185− base: parsed.base,
186− slug: parsed.name,
187− weight: data?.weight ?? 0,
188− });
183+ if (!e.includes("_index.md")) {
184+ get(fileTree, keys, false).pages.push({
185+ title: data.title,
186+ base: parsed.base,
187+ slug: parsed.name,
188+ weight: data?.weight ?? 0,
189+ });
190+ }
189191 });
190192 return fileTree;
191193}