diff --git a/src/components/Nav/NavCategory.tsx b/src/components/Nav/NavCategory.tsx index 20ff63b5..bdea861b 100644 --- a/src/components/Nav/NavCategory.tsx +++ b/src/components/Nav/NavCategory.tsx @@ -31,6 +31,8 @@ export function NavCategory({ document.documentElement.style.setProperty('--collapsible-up-duration', dur) }, []) + const nonIndexItems = docsEntries.filter(([page]) => page !== INDEX_PAGE) + return ( {category.replace(/\-/g, ' ')} - -
- -
-
+ {nonIndexItems.length > 0 && ( + +
+ +
+
+ )}