mirror of
https://github.com/zensical/zensical.git
synced 2026-09-23 06:45:36 +00:00
fix: reserve theme name zensical
Signed-off-by: Timothée Mazzucotelli <dev@pawamoy.fr>
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user