Sitemap template code fix in Lektor documentation

This commit is contained in:
Filip Kłębczyk 2018-04-25 17:45:34 +02:00 committed by GitHub
parent a917d6f3a9
commit 815b1bfd20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ create a `sitemap/contents.lr` file instead and use a template like
{% block title %}Sitemap{% endblock %}
{% block body %}
<ul class="sitemap">
{% for page in [site.root] recursive if page.record_label %}
{% for page in [site.root] if page.record_label recursive %}
<li><a href="{{ page|url }}">{{ page.record_label }}</a>
{% if page.children %}
<ul>{{ loop(page.children) }}</ul>