Skip to content

Commit

Permalink
Revert "Conditional does not need to be nested"
Browse files Browse the repository at this point in the history
This reverts commit 6c747ec as the label is also used in the sidebar
  • Loading branch information
caendesilva committed Aug 11, 2022
1 parent 73bc868 commit 1866476
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ protected function getNavigationMenuTitle(): string
return $this->page->matter('navigation.title');
}

if ($this->page instanceof DocumentationPage) {
return config('hyde.navigation.labels.docs/index', 'Docs');
}

if ($this->page->identifier === 'index') {
return config('hyde.navigation.labels.index', 'Home');
if ($this->page instanceof DocumentationPage) {
return config('hyde.navigation.labels.docs', 'Docs');
}

return config('hyde.navigation.labels.home', 'Home');
}

return $this->page->matter('title') ?? $this->page->title;
Expand Down

0 comments on commit 1866476

Please sign in to comment.