Fix the replacement path

This commit is contained in:
Stavros Korokithakis 2021-11-20 17:54:59 +02:00
parent 95b8b123d7
commit 75cc5563c7
No known key found for this signature in database
GPG Key ID: 26EA345ECD4C2A63

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)