Fixed a mistake in code snippet
Fixed a mistake in the Fully Automatic Navigation example
This commit is contained in:
parent
a572dbd954
commit
9abc4475d5
|
@ -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 %}
|
||||||
|
|
Loading…
Reference in New Issue