Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions content/collections/tags/nav.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,23 @@ The `{{ *recursive children* }}` tag will repeat the contents of the entire `{{

It’s an admittedly weird concept, and might take some fiddling with to truly understand, but is very powerful when fully understood. Take the time. Learn to wield it. A powerful Jedi will you be.

## Children {#children}

If you want to take more control over your child menu, you can just loop through the `children` array within your menu, instead of repeating the contents of the child elements with `{{ *recursive children* }}`.

```
{{ if is_current || is_parent }}
{{ if children }}
<ul>
{{ children }}
<li><a href="{{ url }}">{{ title }}</li>
{{ /children }}
</ul>
{{ /if }}
{{ /if }}
```


## Hidden Pages {#hidden-pages}

A common use-case for navigation is to make some pages "hidden", which means to hide them from the nav, but keep them
Expand Down