add: light theme with dynamic syntax highlight

This commit is contained in:
Alexis Fourmaux 2025-03-29 01:42:48 +01:00
parent f2a59f7b6d
commit e3f68348cb
7 changed files with 705 additions and 838 deletions

View file

@ -11,7 +11,11 @@ build_search_index = true
# Whether to do syntax highlighting
# Theme can be customised by setting the `highlight_theme` variable to a theme supported by Zola
highlight_code = true
highlight_theme = "Ungol"
highlight_theme = "css"
highlight_themes_css = [
{ theme = "ungol-dark", filename = "syntax-theme-dark.css" },
{ theme = "ungol-light", filename = "syntax-theme-light.css" },
]
extra_syntaxes_and_themes = ["highlight_themes"]
[extra]