aboutsummaryrefslogtreecommitdiffstats
path: root/bootstrap/templates/archives.html
diff options
context:
space:
mode:
authorMassimo Santini <massimo.santini@gmail.com>2011-12-05 23:43:04 +0100
committerMassimo Santini <massimo.santini@gmail.com>2011-12-05 23:43:04 +0100
commitdc67ee39fcfc6ae8cbcc56fffd39242b839f8cd3 (patch)
tree66b96f17911a0f2142515162d7ad38ec0b9b3b28 /bootstrap/templates/archives.html
parent28bc815799239f17f896b3b64929a0356fd090db (diff)
downloadpelican-themes-dc67ee39fcfc6ae8cbcc56fffd39242b839f8cd3.tar.gz
A new theme based on Bootstrap from Twitter
Diffstat (limited to 'bootstrap/templates/archives.html')
-rw-r--r--bootstrap/templates/archives.html15
1 files changed, 15 insertions, 0 deletions
diff --git a/bootstrap/templates/archives.html b/bootstrap/templates/archives.html
new file mode 100644
index 0000000..2d02e12
--- /dev/null
+++ b/bootstrap/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 %}