Fixed a mistake in code snippet

Fixed a mistake in the Fully Automatic Navigation example
This commit is contained in:
elJorno 2016-12-16 19:29:13 +01:00 committed by GitHub
parent a572dbd954
commit 9abc4475d5
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ a page. This is easy to accomplish as well:
```html+jinja ```html+jinja
<nav> <nav>
<ul class="nav"> <ul class="nav">
{% for project in site.get('/projects') %} {% for project in site.get('/projects').children %}
<li{% if this == project %} class="active"{% endif <li{% if this == project %} class="active"{% endif
%}><a href="{{ project|url }}">{{ project.name }}</a></li> %}><a href="{{ project|url }}">{{ project.name }}</a></li>
{% endfor %} {% endfor %}