Merge pull request #26 from elementalvoid/archives-learns-multiple-articles-per-date
Update archives template to display the date once all articles on the date.
This commit is contained in:
commit
eac81087ee
1 changed files with 4 additions and 0 deletions
|
@ -8,8 +8,12 @@
|
|||
</header>
|
||||
<div>
|
||||
<dl>
|
||||
{% set previous_date = False %}
|
||||
{% for article in dates %}
|
||||
{% if article.locale_date != previous_date %}
|
||||
{% set previous_date = article.locale_date %}
|
||||
<dt>{{ article.locale_date }}</dt>
|
||||
{% endif %}
|
||||
<dd><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></dd>
|
||||
{% endfor %}
|
||||
</dl>
|
||||
|
|
Loading…
Reference in a new issue