From 04250e0155fb147d15bbb0acfa254b22e27cb199 Mon Sep 17 00:00:00 2001 From: Jack Hickey Date: Mon, 2 Sep 2024 14:57:20 +0100 Subject: [PATCH] Remove +1 when calculating news url prefix --- source/exts/nxt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/exts/nxt.py b/source/exts/nxt.py index 46033d50..672ef33b 100644 --- a/source/exts/nxt.py +++ b/source/exts/nxt.py @@ -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] + "/#"