mirror of
https://github.com/zensical/zensical.git
synced 2026-05-03 17:40:31 +00:00
zensical:fix - navigation.indexes matches filenames containing 'index' - amended for signing
Signed-off-by: AlexanderNZ <alexcorkin@gmail.com>
This commit is contained in:
@@ -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")
|
||||
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user