diff --git a/build.py b/build.py index 59a95c8..68844df 100644 --- a/build.py +++ b/build.py @@ -39,8 +39,7 @@ def go_through(directory): if len(filename.split(".")) == 1: content = gen_file(f"{os.getcwd()}/{directory}/{filename}/index.md") - fier = content[content.find('/'):] - + _, _, fier = directory.partition('/') if len(fier) != 0: fier += "/" loc = f"{fier}{filename}/index.html"