Skip to content

Commit

Permalink
Update navigation data factory to return explicitly set group
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Apr 29, 2024
1 parent 575989a commit c0ada2c
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ protected function makeGroup(): ?string
return $this->getSubdirectoryName();
}

if ($this->matter->has('navigation.group')) {
return $this->getMatter('navigation.group');
}

return $this->searchForGroupInFrontMatter() ?? $this->defaultGroup();
}

Expand Down

0 comments on commit c0ada2c

Please sign in to comment.