aboutsummaryrefslogtreecommitdiffstats
path: root/dev-random2/templates/archives.html
diff options
context:
space:
mode:
authorAlexis Metaireau <alexis@notmyidea.org>2012-11-20 15:31:35 -0800
committerAlexis Metaireau <alexis@notmyidea.org>2012-11-20 15:31:35 -0800
commit975a43dac221322aaf0c973e0042c9af334e804b (patch)
tree90d8ff2bb7f51f45104fa31d749f1ee05109352a /dev-random2/templates/archives.html
parentc3ecf17533a32561e77c023df469cab1c467ffe2 (diff)
parent958bcd6cb5e8215033d5505282e2e61b2b5ea778 (diff)
downloadpelican-themes-975a43dac221322aaf0c973e0042c9af334e804b.tar.gz
Merge pull request #45 from m-r-r/master
New theme
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 -%}