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>
|
<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 %}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue