From 87d452ea3b0e9919ef08097a123853d858327acc Mon Sep 17 00:00:00 2001 From: Caen De Silva Date: Fri, 9 Feb 2024 18:59:24 +0100 Subject: [PATCH] Move documentation --- docs/digging-deeper/customization.md | 24 ------------------------ docs/digging-deeper/navigation.md | 14 ++++++++++++++ 2 files changed, 14 insertions(+), 24 deletions(-) diff --git a/docs/digging-deeper/customization.md b/docs/digging-deeper/customization.md index 1fde8c50778..29ac62f6a86 100644 --- a/docs/digging-deeper/customization.md +++ b/docs/digging-deeper/customization.md @@ -223,30 +223,6 @@ Learn more in the [Documentation Pages](documentation-pages) documentation. >info Tip: When using subdirectory-based dropdowns, you can set their priority using the directory name as the array key. -#### Excluding Items (Blacklist) - -Sometimes, especially if you have a lot of pages, you may want to prevent links from showing up in the main navigation menu. -To remove items from being automatically added, simply add the page's route key to the blacklist. -As you can see, the `404` page has already been filled in for you. - -```php -// filepath config/hyde.php -'navigation' => [ - 'exclude' => [ - '404' - ] -] -``` - -You can also specify that a page should be excluded by setting the page front matter. - -```markdown ---- -navigation: - hidden: true ---- -``` - #### Adding Custom Navigation Menu Links You can easily add custom navigation menu links similar how we add Authors. Simply add a `NavItem` model to the `navigation.custom` array. diff --git a/docs/digging-deeper/navigation.md b/docs/digging-deeper/navigation.md index 99bf0c890f3..f80cc5fc779 100644 --- a/docs/digging-deeper/navigation.md +++ b/docs/digging-deeper/navigation.md @@ -208,6 +208,20 @@ This is not yet supported for the sidebar, but will be in the future. ] ``` +#### Excluding Items (Blacklist) + +Sometimes, especially if you have a lot of pages, you may want to prevent links from showing up in the main navigation menu. +To remove items from being automatically added, simply add the page's route key to the blacklist. + +```php +// filepath config/hyde.php +'navigation' => [ + 'exclude' => [ + '404' + ] +] +``` + ## Digging deeper into the internals While not required to know, you may find it interesting to learn more about how the navigation is handled internally.