Added a few files.
This commit is contained in:
parent
6997e7368a
commit
a8bace0591
|
@ -7,6 +7,7 @@
|
|||
/static/*.css
|
||||
/static/*.js
|
||||
/template.html
|
||||
/extra/atom.xml
|
||||
log.mege
|
||||
/mege/
|
||||
apache-config
|
||||
|
|
|
@ -9,4 +9,11 @@ except ImportError:
|
|||
sys.path.insert(0, os.path.join(_filedir, 'mege'))
|
||||
import mege.server as server
|
||||
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)
|
||||
|
|
|
@ -79,7 +79,7 @@ body {
|
|||
border-style: dashed;
|
||||
border-color: #ccc;
|
||||
border-width: 4px 0 0 0;
|
||||
background-color: #aaa;
|
||||
background: #aaa url('/static/metadata.png') no-repeat right bottom;
|
||||
padding: 2px 5px;
|
||||
color: #fff;
|
||||
}
|
||||
|
|
|
@ -51,6 +51,7 @@ if page.licenses:
|
|||
less functional.
|
||||
-->
|
||||
<script type='text/javascript' src='/static/aesthetics.js'></script>
|
||||
<script type='text/javascript' src='/static/extra.js'></script>
|
||||
</head>
|
||||
<body>
|
||||
<a id='minilogo' href='/'></a>
|
||||
|
@ -62,7 +63,7 @@ for x in('projects', 'writings', 'films', 'about'):
|
|||
</ul>
|
||||
</div>
|
||||
<div id='body'<!--@exec if page.fullpage: print(" class='full'", end='')@-->>
|
||||
<!--@eval page.body@-->
|
||||
<!--@eval run_macros(page.body)@-->
|
||||
<div id='metadata'>
|
||||
<!--@eval page.metadata_info@-->
|
||||
</div>
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
#+title: Films
|
|
@ -1,3 +1,5 @@
|
|||
#+title: Directory listing: <@eval page.core_url>
|
||||
#+title: Directory listing: <@eval page.core_url@>
|
||||
|
||||
<@eval page.dirlist>
|
||||
#@deval
|
||||
page.dirlist
|
||||
#@
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#+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
|
||||
<@eval page.error>
|
||||
#@block
|
||||
<@deval page.error@>
|
||||
#@
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
|
||||
There was an error, most likely due to sloppy programming:
|
||||
|
||||
#\block
|
||||
<@eval page.error>
|
||||
#@block
|
||||
<@deval page.error@>
|
||||
#@
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 975 B |
Loading…
Reference in New Issue