diff options
author | Stefan Ritter <xeno@thehappy.de> | 2011-03-22 23:06:21 +0100 |
---|---|---|
committer | Stefan Ritter <xeno@thehappy.de> | 2011-03-22 23:06:21 +0100 |
commit | bf758a26acee8e5063cbe19182370bf1546edd6e (patch) | |
tree | 474f40db300533ab2eabd174dca5173c1d5d7b31 /blogthon.cgi | |
parent | 0d024d57e43c899fa3ee2673fe27e5798f509113 (diff) |
Add language and charset to header
Diffstat (limited to 'blogthon.cgi')
-rwxr-xr-x | blogthon.cgi | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/blogthon.cgi b/blogthon.cgi index 0224fc4..264cd54 100755 --- a/blogthon.cgi +++ b/blogthon.cgi @@ -56,7 +56,7 @@ def document_header(string): if string == "html": print "Content-type: text/html\n" print "<!DOCTYPE html>" - print "<html>" + print "<html lang=\"" + language + "\">" if string == "atom": print "Content-type: application/atom+xml\n" print "<?xml version=\"1.0\" encoding=\"utf-8\"?>" @@ -336,6 +336,7 @@ else: document_header("html") print tab + "<head>" print tab*2 + "<title>%s</title>" % blog_title + print tab*2 + "<meta charset=\"utf-8\">" print tab*2 + "<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\" />" print tab*2 + "<meta name=\"keywords\" content=\"%s\" />" % keywords print tab*2 + "<meta name=\"description\" content=\"%s\" />" % blog_title |