aboutsummaryrefslogtreecommitdiffstats
path: root/dev-random2/templates/archives.html
diff options
context:
space:
mode:
authorm-r-r <raybaudroigm@gmail.com>2012-07-26 15:01:23 +0200
committerm-r-r <raybaudroigm@gmail.com>2012-07-26 15:01:23 +0200
commitc55d10de9c103e2c023ef1f40f4f4c0502570e69 (patch)
tree60525471c4c5386b00f8707c4d3d060f2b31cf43 /dev-random2/templates/archives.html
parent98f0d46f2bbddf86e8d202b533af35fa79da2d2f (diff)
downloadpelican-themes-c55d10de9c103e2c023ef1f40f4f4c0502570e69.tar.gz
[dev-random2] Theme upgrade
Diffstat (limited to 'dev-random2/templates/archives.html')
-rw-r--r--dev-random2/templates/archives.html29
1 files changed, 29 insertions, 0 deletions
diff --git a/dev-random2/templates/archives.html b/dev-random2/templates/archives.html
new file mode 100644
index 0000000..3573bf2
--- /dev/null
+++ b/dev-random2/templates/archives.html
@@ -0,0 +1,29 @@
+{% extends "base.html" %}
+
+{% block content_title %}{{ SITENAME }} — Archives{% endblock %}
+
+{%- block content %}
+ <h1>Archives</h1>
+ <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 -%}