fix: reserve theme name zensical

Signed-off-by: Timothée Mazzucotelli <dev@pawamoy.fr>
This commit is contained in:
Timothée Mazzucotelli
2026-05-14 11:29:53 +00:00
committed by GitHub
parent a5a864178c
commit 6eb2f4d942
+3 -2
View File
@@ -284,8 +284,9 @@ def get_builtin_theme_dir() -> str:
def get_theme_dir(name: str) -> str:
"""Return the theme directory."""
# Zensical's default theme is the replacement for the `material` theme, so
# make sure to use the built-in theme when `material` is specified
if name == "material":
# make sure to use the built-in theme when `material` is specified.
# We also reserve the `zensical` theme name to the same effect.
if name in ("material", "zensical"):
return get_builtin_theme_dir()
# Otherwise, check for installed themes - note that because of minijinja,