mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
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:
parent
497b725dab
commit
bdbba6bc68
1 changed files with 3 additions and 5 deletions
|
|
@ -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 %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue