From 7a0a5e0600446257bb615c83986b2bc05d7a96d2 Mon Sep 17 00:00:00 2001 From: AlexanderNZ Date: Fri, 5 Dec 2025 14:26:07 +1300 Subject: [PATCH] zensical:fix - navigation.indexes matches filenames containing 'index' - amended for signing Signed-off-by: AlexanderNZ --- python/zensical/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/zensical/config.py b/python/zensical/config.py index 0b36f4b..884a729 100644 --- a/python/zensical/config.py +++ b/python/zensical/config.py @@ -595,7 +595,7 @@ def _is_index(path: str) -> bool: """ Returns, whether the given path points to a section index. """ - return path.endswith(("index.md", "README.md")) + return os.path.basename(path) in ("index.md", "README.md") # -----------------------------------------------------------------------------