Commit 3ed0453 1 parent b330ff5 commit 3ed0453 Copy full SHA for 3ed0453
File tree 1 file changed +1
-8
lines changed
packages/framework/src/Framework/Features/Navigation
1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -96,17 +96,10 @@ protected function usesGroups(): bool
96
96
97
97
return $ this ->routes ->first (fn (Route $ route ): bool => filled ($ route ->getPage ()->navigationMenuGroup ())) !== null ;
98
98
} else {
99
- return Config::getString ('hyde.navigation.subdirectories ' , 'hidden ' ) === 'dropdown ' || $ this -> hasGroupExplicitlySetInFrontMatter () ;
99
+ return Config::getString ('hyde.navigation.subdirectories ' , 'hidden ' ) === 'dropdown ' ;
100
100
}
101
101
}
102
102
103
- private function hasGroupExplicitlySetInFrontMatter (): bool
104
- {
105
- return $ this ->routes ->contains (function (Route $ item ): bool {
106
- return ($ item ->getPage ()->navigationMenuGroup () !== null ) && (! $ item ->getPage () instanceof DocumentationPage);
107
- });
108
- }
109
-
110
103
protected function canAddRoute (Route $ route ): bool
111
104
{
112
105
if (! $ route ->getPage ()->showInNavigation ()) {
You can’t perform that action at this time.
0 commit comments