Skip to content

Commit 42c10ae

Browse files
authored
Fix frontmatter injection bug
1 parent ecf677a commit 42c10ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build/version_archiver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def inject_url_frontmatter(self):
155155
url = f"url: '/{base_url}/{self.new_version}/{relative_path}/'"
156156

157157
else:
158-
f = file.strip(".md")
158+
f = file.removesuffix(".md")
159159
if relative_path == ".":
160160
url = f"url: '/{base_url}/{self.new_version}/{f}/'"
161161
else:

0 commit comments

Comments
 (0)