From 261797ff47d96c47c3364110c100bf64701f7da5 Mon Sep 17 00:00:00 2001 From: m-r-r Date: Sat, 7 Apr 2012 19:36:03 +0200 Subject: Added the dev-random theme --- dev-random/templates/archives.html | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 dev-random/templates/archives.html (limited to 'dev-random/templates/archives.html') 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 %} + +
+ {% for article in articles %} + {% if loop.first or article.date.strftime('%Y %m') != articles[loop.index0-1].date.strftime('%Y %m') %} +
+

{{ article.date.strftime('%B %Y') }}

+
    + {% endif %} + +
  • + + {{ article.title }} + +
  • + + {% if loop.last or article.date.strftime('%Y %m') != articles[loop.index0+1].date.strftime('%Y %m') %} +
+
+ {% endif %} + {% endfor %} +
+ +{% endblock content -%} -- cgit