From c6ad68e0cf0ca84fb01232df2f4526636ab5ea16 Mon Sep 17 00:00:00 2001 From: Stefan Ritter Date: Tue, 22 Mar 2011 22:54:47 +0100 Subject: Remove xhtml-strict and xhtml-transitional, add html (html5) --- blogthon.cgi | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/blogthon.cgi b/blogthon.cgi index 564459c..1041774 100755 --- a/blogthon.cgi +++ b/blogthon.cgi @@ -38,7 +38,7 @@ def generate_uuid(string): return string def errorpage(string): - document_header("xhtml-strict") + document_header("html") print "" print tab + "Error!" print tab + "" @@ -53,16 +53,9 @@ def errorpage(string): sys.exit() def document_header(string): - if string == "xhtml-transitional": - print "Content-type: text/html\n" - print "" - print "" - if string == "xhtml-strict": - print "Content-type: text/html\n" - print "" - print "" + if string == "html": + print "" + print "" if string == "atom": print "Content-type: application/atom+xml\n" print "" @@ -339,7 +332,7 @@ elif feed_display == "rss": # Generate regular page else: - document_header("xhtml-strict") + document_header("html") print tab + "" print tab*2 + "%s" % blog_title print tab*2 + "" -- cgit v1.2.3