aboutsummaryrefslogtreecommitdiffstats
path: root/dev-random/templates/archives.html
diff options
context:
space:
mode:
authorm-r-r <raybaudroigm@gmail.com>2012-04-07 19:36:03 +0200
committerm-r-r <raybaudroigm@gmail.com>2012-04-07 19:36:03 +0200
commit261797ff47d96c47c3364110c100bf64701f7da5 (patch)
tree3242dd2ba40c67387cd5ac646d7831522eaad86b /dev-random/templates/archives.html
parenta006f0a70f9e432908d97bd9ecdb37e4b8f5d328 (diff)
downloadpelican-themes-261797ff47d96c47c3364110c100bf64701f7da5.tar.gz
Added the dev-random theme
Diffstat (limited to 'dev-random/templates/archives.html')
-rw-r--r--dev-random/templates/archives.html30
1 files changed, 30 insertions, 0 deletions
diff --git a/dev-random/templates/archives.html b/dev-random/templates/archives.html
new file mode 100644
index 0000000..998890e
--- /dev/null
+++ b/dev-random/templates/archives.html
@@ -0,0 +1,30 @@
+{% extends "base.html" %}
+
+{% block content_title %}{{ SITENAME }} — Archives{% endblock %}
+
+{%- block content %}
+
+ <dl>
+ {% for article in articles %}
+ {% if loop.first or article.date.strftime('%Y %m') != articles[loop.index0-1].date.strftime('%Y %m') %}
+ <dt>
+ <h2>{{ article.date.strftime('%B %Y') }}</h2>
+ <ul>
+ {% endif %}
+
+ <li>
+ <a rel="bookmark"
+ href="{{ SITEURL }}/{{ article.url }}"
+ title="Lien permanent vers «{{ article.title }}»">
+ {{ article.title }}
+ </a>
+ </li>
+
+ {% if loop.last or article.date.strftime('%Y %m') != articles[loop.index0+1].date.strftime('%Y %m') %}
+ </ul>
+ </dt>
+ {% endif %}
+ {% endfor %}
+ </dl>
+
+{% endblock content -%}