diff --git a/blogthon.cgi b/blogthon.cgi
index a56dc28..b111ac2 100755
--- a/blogthon.cgi
+++ b/blogthon.cgi
@@ -1,3 +1,4 @@
+w
#!/usr/bin/python
# This program is free software. It comes without any warranty, to
@@ -290,19 +291,19 @@ else:
# Staticpage
if static_display != "":
content = open(staticpages_dir + static_display, "r")
- print '
'
- print '
'
+ print '
'
+ print '
' + re.sub('\d+?-', '', static_display) + '
'
+ print '
'
+ print '
'
for line in content:
- print ' ' + line.strip() + '
'
- print '
'
- print '
'
- print ' '
- print ' '
- print '
'
- print '
'
- print '
'
- print '
'
+ print ' ' + line.strip() + '
'
+ print ' '
+ print '
'
+ print ' '
+ print '
'
+ print '
'
+ print '
'
+ print '
'
content.close()
# Entry
else:
@@ -318,20 +319,20 @@ else:
if post_display == title or not post_display:
if allentries_display == "1" or entry_counter < entries_per_page:
content = open(entry, "r")
+ print '
'
if permalinks:
- print '
'
+ print '
'
else:
- print '
' + title + '
'
- print '
'
+ print '
' + title + '
'
+ print '
'
for line in content:
- print ' ' + line.strip() + '
'
- print '
'
- print ' '
- print ' '
- print '
'
- print '
'
- print '
'
- print '
'
+ print ' ' + line.strip() + '
'
+ print '
'
+ print ' '
+ print '
'
+ print '
'
+ print '
'
+ print '
'
# Comments...
# ... are shown when post_display and comments_file isn't false
@@ -374,8 +375,9 @@ else:
if comments == "True":
comments_file = glob.glob(entries_dir + title + '.comments')
if not comments_file and not post_display:
- print ' '
print ''
elif comments_file and not post_display:
@@ -383,8 +385,9 @@ else:
comments_counter = 0
for line in comments_content:
if line.split(".", 1)[0] == "-": comments_counter += 1
- print ' '
print ''
comments_content.close()