mirror of
https://github.com/grey-cat-1908/website.git
synced 2024-11-11 18:57:26 +03:00
vrode fix
This commit is contained in:
parent
5aecf4b8f6
commit
ba528b140c
1 changed files with 1 additions and 2 deletions
3
build.py
3
build.py
|
@ -39,8 +39,7 @@ def go_through(directory):
|
||||||
if len(filename.split(".")) == 1:
|
if len(filename.split(".")) == 1:
|
||||||
content = gen_file(f"{os.getcwd()}/{directory}/{filename}/index.md")
|
content = gen_file(f"{os.getcwd()}/{directory}/{filename}/index.md")
|
||||||
|
|
||||||
fier = content[content.find('/'):]
|
_, _, fier = directory.partition('/')
|
||||||
|
|
||||||
if len(fier) != 0: fier += "/"
|
if len(fier) != 0: fier += "/"
|
||||||
|
|
||||||
loc = f"{fier}{filename}/index.html"
|
loc = f"{fier}{filename}/index.html"
|
||||||
|
|
Loading…
Reference in a new issue