From cff4943809fa41c9503f3510c241df4115c684b5 Mon Sep 17 00:00:00 2001 From: Stefan Ritter Date: Wed, 18 Jan 2012 20:07:23 +0100 Subject: favicon.(png|gif|ico) can be placed in styles/$yourstyle/ now --- blogthon.cgi | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/blogthon.cgi b/blogthon.cgi index a8e3f3f..de3dd63 100755 --- a/blogthon.cgi +++ b/blogthon.cgi @@ -393,6 +393,21 @@ else: print(ind*2 + "" % keywords) print(ind*2 + "" % blog_title) print(ind*2 + "" % (style, style)) + + if os.path.exists("styles/" + style + "/favicon.png"): + icon_suffix = "png" + icon_type = "image/png" + elif os.path.exists("styles/" + style + "/favicon.gif"): + icon_suffix = "gif" + icon_type = "image/gif" + elif os.path.exists("styles/" + style + "/favicon.ico"): + icon_suffix = "ico" + icon_type = "image/x-icon" + else: + icon_type = None; + if icon_type: + print(ind*2 + "" % (style, icon_suffix, icon_type)) + print(ind + "") print(ind + "") print("") -- cgit v1.2.3