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
|
||||
<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>
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue