File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
src/lib/output/themes/default Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -383,7 +383,17 @@ export class DefaultTheme extends Theme {
383
383
}
384
384
385
385
if ( parent . categories && shouldShowCategories ( parent , opts ) ) {
386
- return filterMap ( parent . categories , toNavigation ) ;
386
+ const noneCategory = parent . categories . find ( ( x ) => x . title === "none" ) ;
387
+ const otherCategories = parent . categories . filter ( ( x ) => x . title !== "none" ) ;
388
+
389
+ const mappedOthers = filterMap ( otherCategories , toNavigation ) ;
390
+
391
+ if ( noneCategory ) {
392
+ const noneMappedChildren = filterMap ( noneCategory . children , toNavigation ) ;
393
+ return [ ...noneMappedChildren , ...mappedOthers ] ;
394
+ }
395
+
396
+ return mappedOthers ;
387
397
}
388
398
389
399
if ( parent . groups && shouldShowGroups ( parent , opts ) ) {
You can’t perform that action at this time.
0 commit comments