Skip to content

Commit

Permalink
Bugfix: Don't add documentation page link if it's excluded
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Jul 10, 2022
1 parent 421f9a8 commit 4d48444
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/framework/src/Concerns/CanBeInNavigation.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function showInNavigation(): bool
}

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

if ($this instanceof AbstractMarkdownPage) {
Expand Down

0 comments on commit 4d48444

Please sign in to comment.