隐藏侧栏归档入口分组 #27

Closed
codex-bot wants to merge 1 commits from codex/hide-archive-navigation into main
+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 (