Skip to content

Commit 4d48444

Browse files
committed
Bugfix: Don't add documentation page link if it's excluded
1 parent 421f9a8 commit 4d48444

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/framework/src/Concerns/CanBeInNavigation.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function showInNavigation(): bool
2626
}
2727

2828
if ($this instanceof DocumentationPage) {
29-
return $this->slug === 'index';
29+
return $this->slug === 'index' && ! in_array('docs', config('hyde.navigation.exclude', []));
3030
}
3131

3232
if ($this instanceof AbstractMarkdownPage) {

0 commit comments

Comments
 (0)