X-Git-Url: https://git.llucax.com/software/blitiri.git/blobdiff_plain/5e45cd0354881aee35f582b4c233eb8341ebc7a3..d209a0e7a339a8072e2ca93ae6e776a8dd14c82c:/blitiri.cgi?ds=sidebyside diff --git a/blitiri.cgi b/blitiri.cgi index 1dadce5..b95d5ca 100755 --- a/blitiri.cgi +++ b/blitiri.cgi @@ -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():