From 9058d57cfe5dcc7e902bdfcf259bc0d773e51060 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Wed, 1 Apr 2026 08:29:42 +0200 Subject: [PATCH] Update Zola config for v0.22 compatibility The highlighting config format changed in Zola 0.22: use [markdown.highlighting] with style/light_theme/dark_theme fields instead of the old highlight_code/highlight_theme fields. --- config.toml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/config.toml b/config.toml index 35730ecbb..2cc146b8c 100644 --- a/config.toml +++ b/config.toml @@ -10,10 +10,7 @@ default_language = "en" generate_feeds = true [markdown] -highlight_code = true -highlight_theme = "css" - -highlight_themes_css = [ - { theme = "OneHalfDark", filename = "syntax-theme-dark.css" }, - { theme = "OneHalfLight", filename = "syntax-theme-light.css" }, -] +[markdown.highlighting] +style = "class" +light_theme = "one-light" +dark_theme = "one-dark-pro"