mirror of
https://github.com/kennethreitz/kennethreitz.org.git
synced 2026-06-21 14:50:57 +00:00
5421724013
Implement HTML sitemap generation with clean template design, add cache debugging endpoint with comprehensive stats, and implement themes functionality with pattern-based content categorization. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
32 lines
917 B
HTML
32 lines
917 B
HTML
{% extends "base.html" %}
|
|
|
|
{% block content %}
|
|
<article>
|
|
<h1>Site Map</h1>
|
|
<p class="subtitle">{{ total_items }} pages across the digital garden</p>
|
|
|
|
<section>
|
|
<h2>Main Sections</h2>
|
|
<p>
|
|
{% for item in sitemap_data.directory %}
|
|
<a href="{{ item.url }}">{{ item.title }}</a>{% if not loop.last %} · {% endif %}
|
|
{% endfor %}
|
|
</p>
|
|
</section>
|
|
|
|
<section>
|
|
<h2>Essays</h2>
|
|
{% for item in sitemap_data.article %}
|
|
<p>
|
|
<a href="{{ item.url }}">{{ item.title }}</a>
|
|
{% if item.modified %}<span style="color: #999; margin-left: 0.5rem;">{{ item.modified.strftime('%Y-%m-%d') }}</span>{% endif %}
|
|
</p>
|
|
{% endfor %}
|
|
</section>
|
|
|
|
<section>
|
|
<h2>Technical</h2>
|
|
<p><a href="/sitemap.xml">XML Sitemap</a> for search engines</p>
|
|
</section>
|
|
</article>
|
|
{% endblock %} |