Fix Nested tree navigation with recursion example (#9174)
Merge pull request 9174
This commit is contained in:
parent
48977ec304
commit
645584824f
|
@ -637,11 +637,11 @@ First, we'll create an include that we can use for rendering the navigation tree
|
||||||
```liquid
|
```liquid
|
||||||
<ul>
|
<ul>
|
||||||
{% for item in include.nav %}
|
{% for item in include.nav %}
|
||||||
<li><a href="{{ item.url }}">{{ item.title }}</a></li>
|
<li><a href="{{ item.url }}">{{ item.title }}</a>
|
||||||
|
{% if item.subnav %}
|
||||||
{% if item.subnav %}
|
{% include nav.html nav=item.subnav %}
|
||||||
{% include nav.html nav=item.subnav %}
|
{% endif %}
|
||||||
{% endif %}
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue