This commit is contained in:
Nico Schottelius 2020-12-03 12:54:53 +01:00
parent 5be98af581
commit 3ca9e5ddc2
2 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,3 @@
_template: sitemap.html
---
_model: none

20
templates/sitemap.html Normal file
View File

@ -0,0 +1,20 @@
{% extends "layout-2020.html" %}
{% block title %}Sitemap{% endblock %}
{% block body %}
<div class="container">
<div class="row mb-3">
<div class="col-md-12">
<ul class="sitemap">
{% 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|sort(attribute='path')) }}</ul>
{% endif %}
</li>
{% endfor %}
</ul>
</div>
</div>
</div>
{% endblock %}