Skip to content

Commit

Permalink
Remove +1 when calculating news url prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
nginx-jack committed Sep 2, 2024
1 parent 9408763 commit 04250e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/exts/nxt.py
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,7 @@ def run(self) -> List[Node]:
self.items.append(self.options)
node = nxt_news_entry()
node.options = self.options
node.prefix = "../" * (env.docname.count("/") + 1)
node.prefix = "../" * (env.docname.count("/"))
self.options["anchor"] = (
env.docname.rsplit("/", 1)[0]
+ "/#"
Expand Down

0 comments on commit 04250e0

Please sign in to comment.