aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Ritter <xeno@thehappy.de>2009-03-03 07:28:29 +0100
committerStefan Ritter <xeno@thehappy.de>2009-03-03 07:28:29 +0100
commitfb1a6d9c56b1fd958bd08c34ddc01077c7302c5b (patch)
tree9e683c3e8a0d74353abbe85801a6c56e644c38d8
parentc8cd647d707a0bb384fccbedf058db21e4ce9e37 (diff)
Added commentlinks
-rwxr-xr-xblogthon.cgi5
-rw-r--r--configuration1
-rw-r--r--styles/blogthon.css7
3 files changed, 12 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()
diff --git a/configuration b/configuration
index a468d70..64a9fc8 100644
--- a/configuration
+++ b/configuration
@@ -12,4 +12,5 @@ monthlist: True
staticpages: True
linklist: True
permalinks: True
+comments: True
newest_first: True
diff --git a/styles/blogthon.css b/styles/blogthon.css
index ecaaa63..3808f1a 100644
--- a/styles/blogthon.css
+++ b/styles/blogthon.css
@@ -71,3 +71,10 @@ a.entrytitle:link, a.entrytitle:hover, a.entrytitle:visited, a.entrytitle:active
text-align: center;
background: #111;
}
+
+a.comment:link, a.comment:hover, a.comment:active, a.comment:visited {
+ font-family: Arial;
+ font-size: 8px;
+}
+
+# vim: set tw=0 ts=4: