Fix back buttons when using index.html navigation

This commit is contained in:
Luke Murphy 2019-09-20 17:13:19 +02:00
parent cb9e19d1a2
commit fd370294be
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC

View File

@ -180,7 +180,10 @@ def distribusify(args, directory): # noqa
html.append(div(args, type_, subtype, a, name)) html.append(div(args, type_, subtype, a, name))
if root != directory: if root != directory:
html.append('<a href="../">../</a>') if args.menu_with_index:
html.append('<a href="../index.html">../</a>')
else:
html.append('<a href="../">../</a>')
for name in dirs: for name in dirs:
if args.menu_with_index: if args.menu_with_index: