From 13bbcd8e6805fd6414ebc61086b26f6d84e91b85 Mon Sep 17 00:00:00 2001 From: Stefan Ritter Date: Sat, 21 Jan 2012 01:44:39 +0100 Subject: Add tags to configuration --- blogthon.cgi | 10 ++++++---- configuration | 1 + 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/blogthon.cgi b/blogthon.cgi index 99265c8..79f7ca2 100755 --- a/blogthon.cgi +++ b/blogthon.cgi @@ -119,6 +119,7 @@ try: permalinks = configuration.get("look", "permalinks") comments = configuration.get("look", "comments") newest_first = configuration.get("look", "newest_first") + tags = configuration.get("look", "tags") new_comment_mail = configuration.get("smtp", "new_comment_mail") mail_to = configuration.get("smtp", "mail_to") smtp_host = configuration.get("smtp", "smtp_host") @@ -607,10 +608,11 @@ else: print(ind*4 + "
%s
" % date) # Read tags - tags = content.readline().strip() - if re.match(line_start_plus, tags): - tags = tags.replace("+", "") - print(ind*4 + "
Tags: %s
" % tags) + tagline = content.readline().strip() + if re.match(line_start_plus, tagline): + tagline = tagline.replace("+", "") + if tags == "True": + print(ind*4 + "
Tags: %s
" % tagline) else: content.seek(0) diff --git a/configuration b/configuration index ed8b2f4..f508d0e 100644 --- a/configuration +++ b/configuration @@ -18,6 +18,7 @@ linklist: True permalinks: True comments: True newest_first: True +tags: True [smtp] new_comment_mail: False -- cgit v1.2.3