summaryrefslogtreecommitdiffstats
path: root/themes/dev-urandom/templates/archives.html
diff options
context:
space:
mode:
authorAudric Schiltknecht <storm@chemicalstorm.org>2014-05-09 12:13:44 +0200
committerAudric Schiltknecht <storm@chemicalstorm.org>2014-06-04 22:31:18 +0200
commit0891e0146f0dcf9e6db7ccce4376114c339fa5df (patch)
treef9981617b5fea1e0ac993a6fbe008e1cebfa7941 /themes/dev-urandom/templates/archives.html
parentc710c428dad250a091f7decb0cb31928b0d25339 (diff)
downloadschiltknecht.org-0891e0146f0dcf9e6db7ccce4376114c339fa5df.tar.gz
schiltknecht.org-0891e0146f0dcf9e6db7ccce4376114c339fa5df.tar.bz2
schiltknecht.org-0891e0146f0dcf9e6db7ccce4376114c339fa5df.zip
Import du thème 'dev-random2' pour modifications
Diffstat (limited to 'themes/dev-urandom/templates/archives.html')
-rw-r--r--themes/dev-urandom/templates/archives.html29
1 files changed, 29 insertions, 0 deletions
diff --git a/themes/dev-urandom/templates/archives.html b/themes/dev-urandom/templates/archives.html
new file mode 100644
index 0000000..47bf2ab
--- /dev/null
+++ b/themes/dev-urandom/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|striptags }}»">
+ {{ 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 -%}