diff options
author | Stefan Ritter <xeno@thehappy.de> | 2012-01-21 01:44:39 +0100 |
---|---|---|
committer | Stefan Ritter <xeno@thehappy.de> | 2012-01-21 01:44:39 +0100 |
commit | 13bbcd8e6805fd6414ebc61086b26f6d84e91b85 (patch) | |
tree | b28d0606c9943b244ff931423cace988c7d4137d /blogthon.cgi | |
parent | f473565b37b4dd52528396d8a0fc91263e1fa427 (diff) |
Add tags to configuration
Diffstat (limited to 'blogthon.cgi')
-rwxr-xr-x | blogthon.cgi | 10 |
1 files changed, 6 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 + "<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) + tagline = content.readline().strip() + if re.match(line_start_plus, tagline): + tagline = tagline.replace("+", "") + if tags == "True": + print(ind*4 + "<div class=\"tags\"><b>Tags:</b> %s</div>" % tagline) else: content.seek(0) |