display untitled-page paths as /path rather than path.md

This commit is contained in:
2020-05-28 12:17:27 -05:00
parent 059108c37b
commit 05f879ab80
2 changed files with 4 additions and 4 deletions

View File

@@ -66,5 +66,5 @@ def generate_parent_navs(path):
with app.open_instance_resource(resolved_path, 'r') as entry_file:
entry = entry_file.read()
_ = Markup(md.convert(entry))
page_name = " ".join(md.Meta.get('title')) if md.Meta.get('title') else os.path.basename(resolved_path)
page_name = " ".join(md.Meta.get('title')) if md.Meta.get('title') else path
return generate_parent_navs(parent_path) + [(page_name, path)]