aboutsummaryrefslogtreecommitdiffstats
path: root/blogthon.cgi
diff options
context:
space:
mode:
authorStefan Ritter <xeno@thehappy.de>2012-01-19 04:59:13 +0100
committerStefan Ritter <xeno@thehappy.de>2012-01-19 04:59:13 +0100
commit5a20e73a5fb2b606119c44e8d26d57d8aa67efcc (patch)
tree8ea411226aa32f6562b34f3d44b1c9143d875da6 /blogthon.cgi
parent2c9970c3d07fbafe371980d5cd69d9a9940c2225 (diff)
Load additional header lines from header.txt in style directory
Diffstat (limited to '')
-rwxr-xr-xblogthon.cgi9
1 files changed, 8 insertions, 1 deletions
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 + "<head>")
print(ind*2 + "<title>%s</title>" % blog_title)
- print(ind*2 + "<meta charset=\"utf-8\">")
+ print(ind*2 + "<meta charset=\"utf-8\" />")
print(ind*2 + "<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\" />")
print(ind*2 + "<meta name=\"keywords\" content=\"%s\" />" % keywords)
print(ind*2 + "<meta name=\"description\" content=\"%s\" />" % blog_title)
@@ -408,6 +408,13 @@ else:
if icon_type:
print(ind*2 + "<link rel=\"icon\" href=\"styles/%s/favicon.%s\" type=\"%s\" />" % (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 + "</head>")
print(ind + "<body>")
print("")