From 5a20e73a5fb2b606119c44e8d26d57d8aa67efcc Mon Sep 17 00:00:00 2001 From: Stefan Ritter Date: Thu, 19 Jan 2012 04:59:13 +0100 Subject: Load additional header lines from header.txt in style directory --- blogthon.cgi | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/blogthon.cgi b/blogthon.cgi index de3dd63..5a3b8c8 100755 --- a/blogthon.cgi +++ b/blogthon.cgi @@ -388,7 +388,7 @@ else: document_header("html") print(ind + "") print(ind*2 + "%s" % blog_title) - print(ind*2 + "") + print(ind*2 + "") print(ind*2 + "") print(ind*2 + "" % keywords) print(ind*2 + "" % blog_title) @@ -408,6 +408,13 @@ else: if icon_type: print(ind*2 + "" % (style, icon_suffix, icon_type)) + # Load additional header lines from style + if os.path.exists("styles/" + style + "/header.txt"): + content = open("styles/" + style + "/header.txt", "r") + for line in content: + print(ind*2 + line.strip()) + content.close() + print(ind + "") print(ind + "") print("") -- cgit v1.2.3