parent
b14b5fad89
commit
bef77c9990
|
@ -29,6 +29,7 @@ And the template could access it like this:
|
||||||
{% for path, label in bag('main-nav').iteritems() %}
|
{% for path, label in bag('main-nav').iteritems() %}
|
||||||
<li{% if this.is_child_of(path) %} class="active"{% endif
|
<li{% if this.is_child_of(path) %} class="active"{% endif
|
||||||
%}><a href="{{ path|url }}">{{ label }}</a>
|
%}><a href="{{ path|url }}">{{ label }}</a>
|
||||||
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue