Remove leading dot in title from staticpages

This commit is contained in:
Stefan Ritter 2010-02-17 11:50:43 +01:00
parent d8b98ca5fb
commit 2676322ded

View File

@ -445,7 +445,7 @@ else:
if static_display != "": if static_display != "":
content = open(staticpages_dir + static_display, "r") content = open(staticpages_dir + static_display, "r")
print ' <div class="entry">' print ' <div class="entry">'
print ' <div class="entry_title">' + re.sub('\d+?-', '', static_display) + '</div>' print ' <div class="entry_title">' + re.sub('^\.', '', re.sub('\d+?-', '', static_display)) + '</div>'
print ' <div class="entry_content">' print ' <div class="entry_content">'
print ' <p>' print ' <p>'
for line in content: for line in content: