Skip to content

Commit 04250e0

Browse files
committed
Remove +1 when calculating news url prefix
1 parent 9408763 commit 04250e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/exts/nxt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,7 @@ def run(self) -> List[Node]:
673673
self.items.append(self.options)
674674
node = nxt_news_entry()
675675
node.options = self.options
676-
node.prefix = "../" * (env.docname.count("/") + 1)
676+
node.prefix = "../" * (env.docname.count("/"))
677677
self.options["anchor"] = (
678678
env.docname.rsplit("/", 1)[0]
679679
+ "/#"

0 commit comments

Comments
 (0)