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") # -----------------------------------------------------------------------------