Fix the replacement path

This commit is contained in:
Stavros Korokithakis
2021-11-20 17:54:59 +02:00
parent 95b8b123d7
commit 75cc5563c7

View File

@@ -43,7 +43,7 @@ def main(path: Path):
new_path = dir_path / "index.html"
p.rename(new_path)
replacements[str(p.relative_to(path))] = str(new_path.relative_to(path))
replacements[str(p.relative_to(path))] = f"{new_path.parent.relative_to(path)}/"
replace_links(path, replacements)