aboutsummaryrefslogtreecommitdiffstats
path: root/Just-Read
diff options
context:
space:
mode:
authorNatalia Ventre <natalia.ventre@gmail.com>2012-02-08 23:30:19 -0200
committerNatalia Ventre <natalia.ventre@gmail.com>2012-02-08 23:30:19 -0200
commit385da5723de17df5322824eaff38212a22b19e02 (patch)
tree4f2ba0be0af393254182924420597a180059df08 /Just-Read
parent2790cccdd9ae4c1155a2a5b919d567e431920a25 (diff)
downloadpelican-themes-385da5723de17df5322824eaff38212a22b19e02.zip
pelican-themes-385da5723de17df5322824eaff38212a22b19e02.tar.gz
pelican-themes-385da5723de17df5322824eaff38212a22b19e02.tar.bz2
Correction in the archives
Now the posts are correctly grouped by year.
Diffstat (limited to 'Just-Read')
-rw-r--r--Just-Read/templates/archives.html9
1 files changed, 3 insertions, 6 deletions
diff --git a/Just-Read/templates/archives.html b/Just-Read/templates/archives.html
index 355fe6f..91c1c54 100644
--- a/Just-Read/templates/archives.html
+++ b/Just-Read/templates/archives.html
@@ -1,21 +1,18 @@
{% extends "base.html" %}
-{% block title %}{{ SITENAME }} <small>[archive]</small>{% endblock %}
+{% block title %}{{ SITENAME }}{% endblock %}
{% block content %}
<div role="main" class="content clearfix">
<div class="wrapper main">
{% for year, date_year in dates|groupby( 'date.year' ) %}
- <h2>{{ year }}</h2>
- {% for month, articles in date_year|groupby( 'date.month' ) %}
- <h3>{{ articles[ 0 ].date.strftime( '%B' ) }}</h3>
+ <h2>{{ year }}</h2>
<ol class="archive">
- {% for article in articles %}
+ {% for article in date_year %}
<li class="clearfix"><a href="{{ article.url }}"><time datetime="{{ article.date.isoformat() }}" pubdate>{{ article.locale_date }}</time> {{ article.title }}</a></li>
{% endfor %}
</ol>
{% endfor %}
- {% endfor %}
</div>
</div>
{% endblock %} \ No newline at end of file