[dev-random2] Theme upgrade

This commit is contained in:
m-r-r
2012-07-26 15:01:23 +02:00
parent 98f0d46f2b
commit c55d10de9c
21 changed files with 1346 additions and 0 deletions

View File

@@ -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 -%}