zensical:fix - navigation.indexes matches filenames containing 'index' - amended for signing

Signed-off-by: AlexanderNZ <alexcorkin@gmail.com>
This commit is contained in:
AlexanderNZ
2025-12-05 14:26:07 +13:00
parent 988bbd1ade
commit 7a0a5e0600
+1 -1
View File
@@ -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")
# -----------------------------------------------------------------------------