zensical:fix - config parser expects name to be zensical.toml

Signed-off-by: squidfunk <martin.donath@squidfunk.com>
This commit is contained in:
squidfunk
2025-11-18 19:00:29 +01:00
parent f8c5da6ba5
commit ed29d882c2
+3 -1
View File
@@ -77,7 +77,9 @@ def parse_config(path: str) -> dict:
"""
Parse configuration file.
"""
if path.endswith("zensical.toml"):
# Decide by extension; no need to convert to Path
_, ext = os.path.splitext(path)
if ext.lower() == ".toml":
return parse_zensical_config(path)
else:
return parse_mkdocs_config(path)