mirror of
https://github.com/lektor/lektor-website.git
synced 2025-02-22 07:00:38 +01:00
Merge pull request #187 from fk-lx/patch-1
Sitemap template code fix in Lektor documentation
This commit is contained in:
commit
b5c42eaa73
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user