<#
shared.archive_names.sort()
archlist = shared.archive_names[-10:]
# last ten archives
archlist.reverse()
for archid, pagename in archlist:
if options["archive_method"].startswith("m"):
year, month = archid.split("-", 2)
archname = "%s %s" % (month_names[int(month)-1], year)
elif options["archive_method"].startswith("d"):
year, month, day = archid.split("-", 3)
archname = "%s %d, %s" % (month_names[int(month)-1], int(day), year)
elif options["archive_method"].startswith("e"):
dummy, num_entries = options["archive_method"].split(":")
num_entries = int(num_entries)
if num_entries <= 1:
archname = "Entry %d" % archid
else:
archname = "Entries %d to %d" % (archid, archid+num_entries-1)
else:
archname = str(archid)
print '
%s' % (pagename, archname)
#>
All By Date
<#
# this displays the links to the different categories
import urllib
categories = options.get('categories', [])
# just in case no entries are set
categories.sort()
for category in categories:
p = "arch_%s.html" % (category,)
pagename = urllib.quote(p)
print '
%s' % (pagename, category)
#>
All By Category