Move navigation into config file
This commit is contained in:
parent
107bc4f7fe
commit
4bdb93992b
4 changed files with 113 additions and 141 deletions
|
|
@ -14,4 +14,10 @@ return [
|
|||
return str_contains($page->getPath(), $path);
|
||||
});
|
||||
},
|
||||
'anyChildrenActive' => function ($page, $children) {
|
||||
return $children->contains(function ($link) use ($page) {
|
||||
return $page->getPath() == '/docs/'. $link;
|
||||
});
|
||||
},
|
||||
'navigation' => require_once('navigation.php'),
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue