Skip to content

Commit

Permalink
Do not hide documentation pages in subdirectories
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Jan 23, 2023
1 parent a4f47c6 commit c550d22
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ protected function makeHidden(): bool
return $this->isInstanceOf(MarkdownPost::class)
|| $this->searchForHiddenInFrontMatter()
|| in_array($this->routeKey, config('hyde.navigation.exclude', ['404']))
|| $this->pageIsInSubdirectory() && ($this->getSubdirectoryConfiguration() === 'hidden');
|| ! $this->isInstanceOf(DocumentationPage::class) && $this->pageIsInSubdirectory() && ($this->getSubdirectoryConfiguration() === 'hidden');
}

protected function makePriority(): int
Expand Down

0 comments on commit c550d22

Please sign in to comment.