aboutsummaryrefslogtreecommitdiffstats
path: root/blogthon.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'blogthon.cgi')
-rwxr-xr-xblogthon.cgi5
1 files changed, 4 insertions, 1 deletions
diff --git a/blogthon.cgi b/blogthon.cgi
index 71bf580..4ca86e9 100755
--- a/blogthon.cgi
+++ b/blogthon.cgi
@@ -30,6 +30,7 @@ monthlist = configuration.get('look', 'monthlist')
staticpages = configuration.get('look', 'staticpages')
linklist = configuration.get('look', 'linklist')
permalinks = configuration.get('look', 'permalinks')
+comments = configuration.get('look', 'comments')
newest_first = configuration.get('look', 'newest_first')
action = cgi.FieldStorage()
@@ -103,7 +104,7 @@ if linklist == "True":
print ' <div class="sidebarentry">'
print ' <small>links</small><br />'
for line in content:
- print ' &nbsp;<a href=' + line.split(" ")[0] + '>' + line.split(" ", 1)[1] + '</a>&nbsp;<br />'
+ print ' &nbsp;<a href=' + line.split(" ")[0] + '>' + line.split(" ", 1)[1].strip() + '</a>&nbsp;<br />'
print ' </div>'
content.close()
@@ -138,6 +139,8 @@ else: # Show regular entry
print ' <div class="entry"><p>'
for line in content:
print ' ' + line.strip() + '<br />'
+ if comments == "True":
+ print ' <div class="comment"><ul><li><a href=? class="comment">comments</a></li></ul></div><br />'
print ' </p></div>'
print ' <br /><br />'
content.close()