Migrate to Zola 0.22 syntax highlighting (giallo)#49
Merged
Conversation
native - Update `theme.toml` min_version of Zola to 0.22 - Remove now-obsolete `reference-return.js` script - Comment out and leave TODOs for old code syntax highlighting logic
…>=0.22) Replace syntect-based syntax highlighting with giallo, Zola's new highlighting engine as of v0.22. This is a breaking change requiring Zola >=0.22. - Replace `[markdown]` `highlight_code`/`highlight_theme`/`highlight_themes_css` config with `[markdown.highlighting]` section (`style`, `dark_theme`, `light_theme`) - Update `_base.html` to load giallo CSS with `prefers-color-scheme` media queries - Update `toggle-theme.js` to swap giallo stylesheets via `media` attribute - Update `codeblock.js` to read `data-lang` attribute for language detection - Add giallo base styles (`.giallo-l`, `.giallo-ln`) to `_code.scss` - Add workaround for giallo duplicate `.z-punctuation` rules (getzola/giallo#45) - Remove old syntect-generated CSS files (`static/syntax/`) - Enable `bottom_footnotes` for native Zola footnote backlinks
Prevents nav links from collapsing into a single run of text by applying display:flex with a 1ch gap.
Add useful Zola defaults (sitemap, robots.txt, minify, external link
handling, lazy images, GitHub alerts). Remove verbose comments that
duplicate Zola docs, drop commented-out dead settings, and remove
explicitly-set defaults. Fix `light_theme` to use an actual light theme
("everforest-light") instead of "gruvbox-dark-medium".
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #47.
[markdown]highlight config with[markdown.highlighting], swap<link>tags to reference
giallo-generated CSS, update
toggle-theme.jsto usemediaattributetoggling
static/syntax/(syntect CSS), removereference-return.js(now handled natively by Zola'sbottom_footnotes)data-langattribute(giallo convention), add
shellscript→ Bash mapping, add giallo base stylesand a specificity workaround
for
.z-punctuation(giallo#45)
zola-deploy-actionto v0.22.1external_links_target_blank,external_links_no_referrer,external_links_external,lazy_async_image,github_alerts,error_on_missing_language, etc.)gruvbox-dark-mediumtoeverforest-lightv1.0.0, and Zola >=0.22 requirement notice