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 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>
|
||||||
|
|
Loading…
Reference in New Issue