mirror of
https://github.com/lektor/lektor-website.git
synced 2025-02-22 07:00:38 +01:00
Merge pull request #135 from elJorno/patch-2
Fixed a mistake in code snippet
This commit is contained in:
commit
f5dd02511c
@ -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
Block a user