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>
<dl>
{% for date, articles in dates %}
{% for article in articles %}
<dt>{{ date }}</dt>
<dd><a href='{{ article.url }}'>{{ article.title }}</a></dd>
{% endfor %}
{% for article in dates %}
<dt>{{ article.date.strftime('%Y-%m-%d %H:%M') }}</dt>
<dd><a href='{{ article.url }}'>{{ article.title }}</a></dd>
{% endfor %}
</dl>
{% endblock %}