fixed generation of archive.html (template simple)

-just one loop needed
-same date format as in index.html (template simple)
This commit is contained in:
Florian Preinstorfer 2010-12-10 20:28:45 +01:00
commit bdbba6bc68

View file

@ -3,11 +3,9 @@
<h1>Archives for {{ SITENAME }}</h2> <h1>Archives for {{ SITENAME }}</h2>
<dl> <dl>
{% for date, articles in dates %} {% for article in dates %}
{% for article in articles %} <dt>{{ article.date.strftime('%Y-%m-%d %H:%M') }}</dt>
<dt>{{ date }}</dt> <dd><a href='{{ article.url }}'>{{ article.title }}</a></dd>
<dd><a href='{{ article.url }}'>{{ article.title }}</a></dd>
{% endfor %}
{% endfor %} {% endfor %}
</dl> </dl>
{% endblock %} {% endblock %}