Add missing end li tag in navigation examples
This commit is contained in:
parent
9f8b6bb448
commit
1c2538769e
|
@ -70,11 +70,12 @@ the recursive Jinja loop system comes really in.
|
||||||
<ul class="tree-nav">
|
<ul class="tree-nav">
|
||||||
{% set root = site.get('/') %}
|
{% set root = site.get('/') %}
|
||||||
{% for child in root.children recursive %}
|
{% for child in root.children recursive %}
|
||||||
<li{% if this._path == child._path %} class="active"{% endif
|
<li{% if this._path == child._path %} class="active"{% endif %}>
|
||||||
%}><a href="{{ child|url }}">{{ child.title }}</a>
|
<a href="{{ child|url }}">{{ child.title }}</a>
|
||||||
{% if this.is_child_of(child) %}
|
{% if this.is_child_of(child) %}
|
||||||
<ul>{{ loop(child.children) }}</ul>
|
<ul>{{ loop(child.children) }}</ul>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue