Add tags to configuration
This commit is contained in:
parent
f473565b37
commit
13bbcd8e68
10
blogthon.cgi
10
blogthon.cgi
@ -119,6 +119,7 @@ try:
|
|||||||
permalinks = configuration.get("look", "permalinks")
|
permalinks = configuration.get("look", "permalinks")
|
||||||
comments = configuration.get("look", "comments")
|
comments = configuration.get("look", "comments")
|
||||||
newest_first = configuration.get("look", "newest_first")
|
newest_first = configuration.get("look", "newest_first")
|
||||||
|
tags = configuration.get("look", "tags")
|
||||||
new_comment_mail = configuration.get("smtp", "new_comment_mail")
|
new_comment_mail = configuration.get("smtp", "new_comment_mail")
|
||||||
mail_to = configuration.get("smtp", "mail_to")
|
mail_to = configuration.get("smtp", "mail_to")
|
||||||
smtp_host = configuration.get("smtp", "smtp_host")
|
smtp_host = configuration.get("smtp", "smtp_host")
|
||||||
@ -607,10 +608,11 @@ else:
|
|||||||
print(ind*4 + "<div class=\"entry_date\">%s</div>" % date)
|
print(ind*4 + "<div class=\"entry_date\">%s</div>" % date)
|
||||||
|
|
||||||
# Read tags
|
# Read tags
|
||||||
tags = content.readline().strip()
|
tagline = content.readline().strip()
|
||||||
if re.match(line_start_plus, tags):
|
if re.match(line_start_plus, tagline):
|
||||||
tags = tags.replace("+", "")
|
tagline = tagline.replace("+", "")
|
||||||
print(ind*4 + "<div class=\"tags\"><b>Tags:</b> %s</div>" % tags)
|
if tags == "True":
|
||||||
|
print(ind*4 + "<div class=\"tags\"><b>Tags:</b> %s</div>" % tagline)
|
||||||
else:
|
else:
|
||||||
content.seek(0)
|
content.seek(0)
|
||||||
|
|
||||||
|
@ -18,6 +18,7 @@ linklist: True
|
|||||||
permalinks: True
|
permalinks: True
|
||||||
comments: True
|
comments: True
|
||||||
newest_first: True
|
newest_first: True
|
||||||
|
tags: True
|
||||||
|
|
||||||
[smtp]
|
[smtp]
|
||||||
new_comment_mail: False
|
new_comment_mail: False
|
||||||
|
Loading…
Reference in New Issue
Block a user