aboutsummaryrefslogtreecommitdiffstats
path: root/bootstrap/templates/archives.html
blob: 6dee8ed2dbaf70a9eab05f592c4ad65e4f81d17b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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 }}</a></li>
{% endfor %}
</ul>
{% endfor %}
{% endfor %}
{% endblock %}