sitemap
This commit is contained in:
parent
5be98af581
commit
3ca9e5ddc2
2 changed files with 23 additions and 0 deletions
3
content/u/sitemap/contents.lr
Normal file
3
content/u/sitemap/contents.lr
Normal file
|
@ -0,0 +1,3 @@
|
|||
_template: sitemap.html
|
||||
---
|
||||
_model: none
|
20
templates/sitemap.html
Normal file
20
templates/sitemap.html
Normal 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 %}
|
Loading…
Reference in a new issue