From 6eb2f4d942e79e6f48f772fa16dcddc6e6dbb4eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Mazzucotelli?= Date: Thu, 14 May 2026 11:29:53 +0000 Subject: [PATCH] fix: reserve theme name `zensical` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Timothée Mazzucotelli --- python/zensical/config.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/python/zensical/config.py b/python/zensical/config.py index d951802..54b6b8a 100644 --- a/python/zensical/config.py +++ b/python/zensical/config.py @@ -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,