vrode fix

This commit is contained in:
Виктор 2023-12-26 10:29:18 +03:00 committed by GitHub
parent 5aecf4b8f6
commit ba528b140c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"