Fix Nested tree navigation with recursion example (#9174)

Merge pull request 9174
This commit is contained in:
Robert Love 2022-11-04 01:51:34 +11:00 committed by GitHub
parent 48977ec304
commit 645584824f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -637,11 +637,11 @@ First, we'll create an include that we can use for rendering the navigation tree
```liquid
<ul>
{% for item in include.nav %}
<li><a href="{{ item.url }}">{{ item.title }}</a></li>
{% if item.subnav %}
{% include nav.html nav=item.subnav %}
{% endif %}
<li><a href="{{ item.url }}">{{ item.title }}</a>
{% if item.subnav %}
{% include nav.html nav=item.subnav %}
{% endif %}
</li>
{% endfor %}
</ul>
```