From fd370294beb4fc9af6889deaf014bd8275e4363d Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Fri, 20 Sep 2019 17:13:19 +0200 Subject: [PATCH] Fix back buttons when using index.html navigation --- distribusi/distribusi.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/distribusi/distribusi.py b/distribusi/distribusi.py index 65ad7c6..313c67c 100644 --- a/distribusi/distribusi.py +++ b/distribusi/distribusi.py @@ -180,7 +180,10 @@ def distribusify(args, directory): # noqa html.append(div(args, type_, subtype, a, name)) if root != directory: - html.append('../') + if args.menu_with_index: + html.append('../') + else: + html.append('../') for name in dirs: if args.menu_with_index: