Files
kennethreitz.org/templates/sitemap.html
T
Kenneth Reitz f04e27a09b test
2025-08-23 23:58:56 -04:00

63 lines
1.6 KiB
HTML

{% extends "base.html" %}
{% block content %}
<div style="text-align: center; margin-bottom: 3rem;">
<h1 style="margin-bottom: 0.5rem;">Site Map</h1>
<p class="subtitle">Navigate the complete collection</p>
</div>
<section>
<h2>Statistics</h2>
<ul>
<li>Total Pages: {{ total_items }}</li>
<li>Articles: {{ sitemap_data.article|length }}</li>
<li>Directories: {{ sitemap_data.directory|length }}</li>
</ul>
</section>
{% if sitemap_data.homepage %}
<section>
<h2>Homepage</h2>
<ul>
{% for item in sitemap_data.homepage %}
<li><a href="{{ item.url }}">{{ item.title }}</a></li>
{% endfor %}
</ul>
</section>
{% endif %}
{% if sitemap_data.directory %}
<section>
<h2>Directories & Collections</h2>
<ul>
{% for item in sitemap_data.directory %}
<li>
<a href="{{ item.url }}">{{ item.title }}</a>
{% if item.modified %}<span class="item-date">{{ item.modified.strftime('%Y-%m-%d') }}</span>{% endif %}
</li>
{% endfor %}
</ul>
</section>
{% endif %}
{% if sitemap_data.article %}
<section>
<h2>Articles & Content</h2>
<ul>
{% for item in sitemap_data.article %}
<li>
<a href="{{ item.url }}">{{ item.title }}</a>
{% if item.modified %}<span class="item-date">{{ item.modified.strftime('%Y-%m-%d') }}</span>{% endif %}
</li>
{% endfor %}
</ul>
</section>
{% endif %}
<section>
<h2>Technical</h2>
<ul>
<li><a href="/sitemap.xml">XML Sitemap</a> — Machine-readable sitemap for search engines</li>
</ul>
</section>
{% endblock %}