From e96ea7f073c9843f7aa6b842ee373aafb698ebeb Mon Sep 17 00:00:00 2001
From: Stefan Ritter
Date: Tue, 3 Mar 2009 17:56:22 +0100
Subject: Comments:
* Check if entries/title.comments exists and switch from 'no comments' to
'comments (count)
* Changed font of commentlink to Helvetica 10
---
blogthon.cgi | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
(limited to 'blogthon.cgi')
diff --git a/blogthon.cgi b/blogthon.cgi
index dc34572..1962d77 100755
--- a/blogthon.cgi
+++ b/blogthon.cgi
@@ -140,10 +140,15 @@ else: # Show regular entry
for line in content:
print ' ' + line.strip() + '
'
if comments == "True":
- print '
'
-
+ if not glob.glob(entries_dir + title + '.comments'):
+ print '
'
+ else:
+ print '
'
+
print '
'
print '
'
content.close()
--
cgit v1.2.3
- comments
' - print '