Merge pull request #187 from fk-lx/patch-1

Sitemap template code fix in Lektor documentation
This commit is contained in:
Joseph Nix 2018-04-25 16:58:23 -05:00 committed by GitHub
commit b5c42eaa73
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 title %}Sitemap{% endblock %}
{% block body %} {% block body %}
<ul class="sitemap"> <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> <li><a href="{{ page|url }}">{{ page.record_label }}</a>
{% if page.children %} {% if page.children %}
<ul>{{ loop(page.children) }}</ul> <ul>{{ loop(page.children) }}</ul>