Added titles over the staticpage- and monthlist

This commit is contained in:
Stefan Ritter 2009-03-02 01:17:58 +01:00
parent 10fd2572ac
commit 90abea32b6
1 changed files with 2 additions and 0 deletions

View File

@ -76,6 +76,7 @@ if staticpages:
staticpages_list = glob.glob(staticpages_dir + '*') staticpages_list = glob.glob(staticpages_dir + '*')
staticpages_list.sort() staticpages_list.sort()
print ' <div class="staticpages">' print ' <div class="staticpages">'
print ' <small>pages</small><br />'
for staticpage in staticpages_list: for staticpage in staticpages_list:
title = re.sub('\w+?\/\d+?-', '', staticpage) title = re.sub('\w+?\/\d+?-', '', staticpage)
link = re.sub('\w+?\/', '', staticpage) link = re.sub('\w+?\/', '', staticpage)
@ -86,6 +87,7 @@ if staticpages:
if monthlist: if monthlist:
olddate = "" olddate = ""
print ' <div class="monthlist">' print ' <div class="monthlist">'
print ' <small>months</small><br />'
for entry in entries: for entry in entries:
date = time.strftime("%m%Y", entry[0]) date = time.strftime("%m%Y", entry[0])
date_display = time.strftime("%h %Y", entry[0]) date_display = time.strftime("%h %Y", entry[0])