| 1 |
{% extends "base.html" %} |
| 2 |
|
| 3 |
{%- macro page_item(item) %} |
| 4 |
<li> |
| 5 |
{%- if item.url %} |
| 6 |
<a href="{{ item.url|url }}">{{ item.title }}</a> |
| 7 |
{%- else %} |
| 8 |
{{ item.title }} |
| 9 |
{%- endif %} |
| 10 |
{%- if item.children %} |
| 11 |
<ul> |
| 12 |
{%- for child in item.children %} |
| 13 |
{{ page_item(child) }} |
| 14 |
{%- endfor %} |
| 15 |
</ul> |
| 16 |
{%- endif %} |
| 17 |
</li> |
| 18 |
{%- endmacro %} |
| 19 |
|
| 20 |
{%- block htmltitle %} |
| 21 |
<title>Sitemap — {{ config.site_name }} {{ config.theme.release }} documentation</title> |
| 22 |
{%- endblock %} |
| 23 |
|
| 24 |
{%- block content %} |
| 25 |
<h1 id="index">Sitemap</h1> |
| 26 |
{%- if nav|length>1 %} |
| 27 |
<ul> |
| 28 |
{%- for item in nav %} |
| 29 |
{{ page_item(item) }} |
| 30 |
{%- endfor %} |
| 31 |
</ul> |
| 32 |
{%- else %} |
| 33 |
<p>No pages to list here.</p> |
| 34 |
{%- endif %} |
| 35 |
{%- endblock %} |