tests misleadingly had a leading /, need to append it ourselves

This commit is contained in:
2020-05-28 16:52:43 -05:00
parent beea0c80bf
commit ce06de78a8
2 changed files with 10 additions and 8 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 path
return generate_parent_navs(parent_path) + [(page_name, path)]
page_name = " ".join(md.Meta.get('title')) if md.Meta.get('title') else f'/{path}'
return generate_parent_navs(parent_path) + [(page_name, f'/{path}')]