closing tag on recursive example
This commit is contained in:
parent
72b1216fed
commit
39e7db13b6
|
@ -71,7 +71,7 @@ the recursive Jinja loop system comes really in.
|
|||
{% 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>
|
||||
%}><a href="{{ child|url }}">{{ child.title }}</a></li>
|
||||
{% if this.is_child_of(child) %}
|
||||
<ul>{{ loop(child.children) }}</ul>
|
||||
{% endif %}
|
||||
|
|
Loading…
Reference in New Issue