]> git.llucax.com Git - software/blitiri.git/blobdiff - blitiri.cgi
Use text/css as Content-type when rendering the style sheet
[software/blitiri.git] / blitiri.cgi
index 1dadce5c3852d9140f69621d1747199449244e31..b95d5ca03dd23bd52a2792fa3b139a05835d99d4 100755 (executable)
@@ -60,6 +60,10 @@ except:
        pass
 
 
+# Pimp *_path config variables to support relative paths
+data_path = os.path.realpath(data_path)
+templates_path = os.path.realpath(templates_path)
+
 # Default template
 
 default_main_header = """
@@ -127,16 +131,17 @@ default_css = """
 body {
        font-family: sans-serif;
        font-size: small;
+       width: 52em;
 }
 
 div.content {
-       width: 50%;
+       width: 96%;
 }
 
 h1 {
        font-size: large;
        border-bottom: 2px solid #99F;
-       width: 60%;
+       width: 100%;
        margin-bottom: 1em;
 }
 
@@ -179,7 +184,7 @@ hr {
        height: 2px;
        border: 0;
        background-color: #99F;
-       width: 60%;
+       width: 100%;
 }
 
 div.footer {
@@ -577,7 +582,7 @@ def render_atom(articles):
 
 
 def render_style():
-       print 'Content-type: text/plain\n'
+       print 'Content-type: text/css\r\n\r\n',
        print default_css
 
 def handle_cgi():