closing tag on recursive example

This commit is contained in:
Evan Sonderegger 2015-12-21 13:02:07 -05:00
parent 72b1216fed
commit 39e7db13b6
1 changed files with 1 additions and 1 deletions

View File

@ -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 %}