Hide archived document entries from sidebar navigation

This commit is contained in:
2026-10-30 19:15:45 +08:00
parent 3ab2f8e122
commit d1466f35a6
+1 -1
View File
@@ -31,7 +31,7 @@ export function Navigation({
onNavigate?: () => void;
}) {
const collection = docs.find((d) => d.slug === current)?.collection;
const scopedDocs = docs.filter((d) => d.collection === collection);
const scopedDocs = docs.filter((d) => d.collection === collection && d.group !== "归档入口");
const groups = [...new Set(scopedDocs.map((d) => d.group))];
const collections = collectionEntries(docs);
return (