Added StumpWM
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user