From 0b456ff41acd31efe7457cb6a43d0482c1222848 Mon Sep 17 00:00:00 2001 From: blog-bot Date: Mon, 1 Jun 2026 14:22:45 +0800 Subject: [PATCH] chore: bump Zola toolchain to 0.22.0 and migrate highlighting config Zola 0.22.0 replaces the Syntect highlighter with Giallo and moves all syntax-highlighting options from [markdown] into [markdown.highlighting]. - config.toml: move highlight_code into [markdown.highlighting]; replace highlight_theme = "css" with style = "class" and theme = "catppuccin-frappe" (matching the tabi 0.22 demo). Output stays CSS-class based, coloured by tabi's own stylesheet. - deploy-cloudflare-pages.yml: install-action zola@0.21.0 -> zola@0.22.0. - test-build.yml: shalzz/zola-deploy-action@v0.19.2 -> @v0.22.0. error_on_missing_language is left off: the 'flag' code fence in content/blog/idek2025_writeup.md has no Giallo grammar and would fail the build. Verified locally with a real zola 0.22.0 build (exit 0). --- .github/workflows/deploy-cloudflare-pages.yml | 4 ++-- .github/workflows/test-build.yml | 2 +- config.toml | 10 +++++++--- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deploy-cloudflare-pages.yml b/.github/workflows/deploy-cloudflare-pages.yml index d229d9a..8e27942 100644 --- a/.github/workflows/deploy-cloudflare-pages.yml +++ b/.github/workflows/deploy-cloudflare-pages.yml @@ -19,10 +19,10 @@ jobs: with: submodules: recursive - - name: Install Zola 0.21.0 + - name: Install Zola 0.22.0 uses: taiki-e/install-action@v2 with: - tool: zola@0.21.0 + tool: zola@0.22.0 - name: Build site run: zola build diff --git a/.github/workflows/test-build.yml b/.github/workflows/test-build.yml index e25b0e4..a546496 100644 --- a/.github/workflows/test-build.yml +++ b/.github/workflows/test-build.yml @@ -17,6 +17,6 @@ jobs: submodules: true - name: Zola Build - uses: shalzz/zola-deploy-action@v0.19.2 + uses: shalzz/zola-deploy-action@v0.22.0 env: BUILD_ONLY: true diff --git a/config.toml b/config.toml index c6d8b1b..eb790da 100644 --- a/config.toml +++ b/config.toml @@ -29,12 +29,16 @@ include_content = true [markdown] -highlight_code = true bottom_footnotes = true -# To use a Zola built-in theme, CSP needs to allow unsafe-inline for style-src. -highlight_theme = "css" smart_punctuation = true +[markdown.highlighting] +# Zola 0.22.0 replaced Syntect with Giallo; highlighting options moved here. +# style = "class" emits CSS classes (no inline colours); colours come from tabi's CSS. +highlight_code = true +theme = "catppuccin-frappe" +style = "class" + [extra] # Check out the documentation (or the comments below) to learn how to customise tabi: