Skip to content

Commit

Permalink
Move documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Feb 9, 2024
1 parent 4f484cd commit 87d452e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 24 deletions.
24 changes: 0 additions & 24 deletions docs/digging-deeper/customization.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
14 changes: 14 additions & 0 deletions docs/digging-deeper/navigation.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 87d452e

Please sign in to comment.