Skip to content

Commit c0ada2c

Browse files
committed
Update navigation data factory to return explicitly set group
1 parent 575989a commit c0ada2c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/framework/src/Framework/Factories/NavigationDataFactory.php

+4
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ protected function makeGroup(): ?string
8484
return $this->getSubdirectoryName();
8585
}
8686

87+
if ($this->matter->has('navigation.group')) {
88+
return $this->getMatter('navigation.group');
89+
}
90+
8791
return $this->searchForGroupInFrontMatter() ?? $this->defaultGroup();
8892
}
8993

0 commit comments

Comments
 (0)