diff options
author | Stefan Ritter <xeno@thehappy.de> | 2012-01-19 04:59:13 +0100 |
---|---|---|
committer | Stefan Ritter <xeno@thehappy.de> | 2012-01-19 04:59:13 +0100 |
commit | 5a20e73a5fb2b606119c44e8d26d57d8aa67efcc (patch) | |
tree | 8ea411226aa32f6562b34f3d44b1c9143d875da6 /blogthon.cgi | |
parent | 2c9970c3d07fbafe371980d5cd69d9a9940c2225 (diff) |
Load additional header lines from header.txt in style directory
Diffstat (limited to 'blogthon.cgi')
-rwxr-xr-x | blogthon.cgi | 9 |
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("") |