Add missing end li tag in navigation examples

This commit is contained in:
Mark Steve Samson 2016-03-03 08:12:34 +08:00
parent 9f8b6bb448
commit 1c2538769e
1 changed files with 3 additions and 2 deletions

View File

@ -70,11 +70,12 @@ the recursive Jinja loop system comes really in.
<ul class="tree-nav">
{% set root = site.get('/') %}
{% for child in root.children recursive %}
<li{% if this._path == child._path %} class="active"{% endif
%}><a href="{{ child|url }}">{{ child.title }}</a>
<li{% if this._path == child._path %} class="active"{% endif %}>
<a href="{{ child|url }}">{{ child.title }}</a>
{% if this.is_child_of(child) %}
<ul>{{ loop(child.children) }}</ul>
{% endif %}
</li>
{% endfor %}
</ul>
```