aboutsummaryrefslogtreecommitdiffstats
path: root/tuxlite_tbs/templates/archives.html
diff options
context:
space:
mode:
Diffstat (limited to 'tuxlite_tbs/templates/archives.html')
-rw-r--r--tuxlite_tbs/templates/archives.html15
1 files changed, 15 insertions, 0 deletions
diff --git a/tuxlite_tbs/templates/archives.html b/tuxlite_tbs/templates/archives.html
new file mode 100644
index 0000000..2d02e12
--- /dev/null
+++ b/tuxlite_tbs/templates/archives.html
@@ -0,0 +1,15 @@
+{% extends "base.html" %}
+{% block title %}{{ SITENAME }} <small>[archive]</small>{% endblock %}
+{% block content %}
+{% for year, date_year in dates|groupby( 'date.year' ) %}
+<h2>{{ year }}</h2>
+{% for month, articles in date_year|groupby( 'date.month' ) %}
+<h3>{{ articles[ 0 ].date.strftime( '%B' ) }}</h3>
+<ul>
+{% for article in articles %}
+ <li><a href="{{ article.url }}">{{ article.title }}</li>
+{% endfor %}
+</ul>
+{% endfor %}
+{% endfor %}
+{% endblock %}