Added a few files.

This commit is contained in:
Niels Serup 2011-07-09 00:47:30 +02:00
parent 6997e7368a
commit a8bace0591
9 changed files with 22 additions and 10 deletions

1
.gitignore vendored
View File

@ -7,6 +7,7 @@
/static/*.css /static/*.css
/static/*.js /static/*.js
/template.html /template.html
/extra/atom.xml
log.mege log.mege
/mege/ /mege/
apache-config apache-config

View File

@ -9,4 +9,11 @@ except ImportError:
sys.path.insert(0, os.path.join(_filedir, 'mege')) sys.path.insert(0, os.path.join(_filedir, 'mege'))
import mege.server as server import mege.server as server
os.chdir(_filedir) os.chdir(_filedir)
application = server.MegeApplication()
try:
application = server.MegeApplication()
except Exception as e:
import traceback
with open('.nohifinallog', 'w') as f:
print(e, file=f)
print(traceback.format_exc(), file=f)

View File

@ -79,7 +79,7 @@ body {
border-style: dashed; border-style: dashed;
border-color: #ccc; border-color: #ccc;
border-width: 4px 0 0 0; border-width: 4px 0 0 0;
background-color: #aaa; background: #aaa url('/static/metadata.png') no-repeat right bottom;
padding: 2px 5px; padding: 2px 5px;
color: #fff; color: #fff;
} }

View File

@ -51,6 +51,7 @@ if page.licenses:
less functional. less functional.
--> -->
<script type='text/javascript' src='/static/aesthetics.js'></script> <script type='text/javascript' src='/static/aesthetics.js'></script>
<script type='text/javascript' src='/static/extra.js'></script>
</head> </head>
<body> <body>
<a id='minilogo' href='/'></a> <a id='minilogo' href='/'></a>
@ -62,7 +63,7 @@ for x in('projects', 'writings', 'films', 'about'):
</ul> </ul>
</div> </div>
<div id='body'<!--@exec if page.fullpage: print(" class='full'", end='')@-->> <div id='body'<!--@exec if page.fullpage: print(" class='full'", end='')@-->>
<!--@eval page.body@--> <!--@eval run_macros(page.body)@-->
<div id='metadata'> <div id='metadata'>
<!--@eval page.metadata_info@--> <!--@eval page.metadata_info@-->
</div> </div>

1
site/films/index.org Normal file
View File

@ -0,0 +1 @@
#+title: Films

View File

@ -1,3 +1,5 @@
#+title: Directory listing: <@eval page.core_url> #+title: Directory listing: <@eval page.core_url@>
<@eval page.dirlist> #@deval
page.dirlist
#@

View File

@ -1,7 +1,7 @@
#+title: Error: Page not found #+title: Error: Page not found
The page <@exec print(repr(page.core_url))> does not exist. The error was: The page <@deval repr(page.core_url)@> does not exist. The error was:
#\block #@block
<@eval page.error> <@deval page.error@>
#@ #@

View File

@ -2,6 +2,6 @@
There was an error, most likely due to sloppy programming: There was an error, most likely due to sloppy programming:
#\block #@block
<@eval page.error> <@deval page.error@>
#@ #@

BIN
static/metadata.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 975 B