From d17b1b5b59fb3232b849a10a03efa16a6f98acb1 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Tue, 21 Jul 2015 11:25:38 -0400 Subject: fixed date based archives --- app/builder/base.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'app/builder') diff --git a/app/builder/base.py b/app/builder/base.py index 2db5cb3..12d4f68 100644 --- a/app/builder/base.py +++ b/app/builder/base.py @@ -132,9 +132,8 @@ class BuildWriting(Build): month_name = m.strftime('%b') month_full_name = m.strftime('%B') qs = entry.objects.filter(status__exact=1, pub_date__year=year, - pub_date__month=month).order_by('-pub_date') - c = Context({'type': 'monthly', 'date': '%s %s' % ( - month_full_name, year), 'object_list': qs, }) + pub_date__month=month).order_by('pub_date') + c = Context({'type': 'monthly', 'year': year, 'month': month_full_name, 'object_list': qs, }) t = render_to_string('archives/writing_date.html', c).encode('utf-8') fpath = 'jrnl/%s/%s/' % (year, month) self.write_file(fpath, t) -- cgit v1.2.3