docs/layouts/partials/nav_link_with_children.hbs
<li class="{{is_active_with_ancestor @root.nav_path file.nav_path @root.breadcrumb_path}}">
{{!--
currentNavNode.file
--}}
{{#if file}}
{{!--
@root === the template scope of the current file object being rendered
@root.nav_path === currentFileObject.nav_path
('nav_path' property can be configured by navConfig.pathProperty = 'nav_path')
path === currentNavNode.path
(path property is set to all nav nodes)
--}}
<a href="{{relative_path @root.nav_path path}}" {{#if file.description}}title="{{file.description}}"{{/if}}>{{file.title}}</a>
{{else}}
{{name}}
{{/if}}
{{#if children}}
<ul>
{{#each children}}
{{> nav_link_with_children}}
{{/each}}
</ul>
{{/if}}
</li>