aboutsummaryrefslogtreecommitdiffstats
path: root/blogthon.cgi
diff options
context:
space:
mode:
authorStefan Ritter <xeno@thehappy.de>2012-01-20 22:59:11 +0100
committerStefan Ritter <xeno@thehappy.de>2012-01-20 22:59:11 +0100
commitbdbc414fea79efbec11291ef83c726233538575d (patch)
treebb5ceedb14bf3022f06567b463647818b57e967f /blogthon.cgi
parent944e824467a778a1e7d6cdfcca53238bab80df58 (diff)
Add initial tag system
Diffstat (limited to 'blogthon.cgi')
-rwxr-xr-xblogthon.cgi10
1 files changed, 10 insertions, 0 deletions
diff --git a/blogthon.cgi b/blogthon.cgi
index c1c8870..6d3993f 100755
--- a/blogthon.cgi
+++ b/blogthon.cgi
@@ -574,7 +574,17 @@ else:
else:
print(ind*4 + "<div class=\"entry_title\">%s</div>" % title)
print(ind*4 + "<div class=\"entry_date\">%s</div>" % date)
+
+ # Read tags
+ tags = content.readline().strip()
+ if re.match(line_start_plus, tags):
+ tags = tags.replace("+", "")
+ print(ind*4 + "<div class=\"tags\"><b>Tags:</b> %s</div>" % tags)
+ else:
+ content.seek(0)
+
print(ind*4 + "<div class=\"entry_content\">")
+
for line in content:
if no_break.match(line):
print(ind*5 + line.strip())