Remove leading dot in title from staticpages
This commit is contained in:
parent
d8b98ca5fb
commit
2676322ded
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user