aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Ritter <xeno@thehappy.de>2010-02-17 11:50:43 +0100
committerStefan Ritter <xeno@thehappy.de>2010-02-17 11:50:43 +0100
commit2676322ded345d1bc2bfffa3381d784d75eb5b12 (patch)
treeabf729f80e26e7315cf55092429f1f9c0b60bb65
parentd8b98ca5fbae68a4c15612f59f56cd70b38123df (diff)
Remove leading dot in title from staticpages
-rwxr-xr-xblogthon.cgi2
1 files changed, 1 insertions, 1 deletions
diff --git a/blogthon.cgi b/blogthon.cgi
index c7ad573..0cf3022 100755
--- a/blogthon.cgi
+++ b/blogthon.cgi
@@ -445,7 +445,7 @@ else:
if static_display != "":
content = open(staticpages_dir + static_display, "r")
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 ' <p>'
for line in content: