Added StumpWM

This commit is contained in:
Niels Serup
2011-08-13 18:09:32 +02:00
parent e32b7d39b2
commit b8140d411a
4 changed files with 80 additions and 5 deletions

View File

@@ -28,8 +28,11 @@ def list_pages(pathdir=None):
return dl.generate_html()
def titlelink(path, pathdir=None):
pathdir = misc.macrog('pathdir', pathdir)
orgpath = misc.get_org_path(os.path.join(pathdir, path))
if not path.startswith('/'):
pathdir = misc.macrog('pathdir', pathdir)
orgpath = misc.get_org_path(os.path.join(pathdir, path))
else:
orgpath = misc.get_org_path(os.path.join('site', path[1:]))
if orgpath:
a = htmlgen.org_to_abstract(orgpath, isfile=True, only_metadata=True)
title = a.title