Move navigation into config file

This commit is contained in:
Matt Stauffer 2017-11-09 10:41:03 -05:00
parent 107bc4f7fe
commit 4bdb93992b
4 changed files with 113 additions and 141 deletions

View file

@ -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'),
];