feat: migrate shortcodes to zola components - #117
Merged
Conversation
JosiahParry
approved these changes
Aug 20, 2026
JosiahParry
left a comment
Contributor
There was a problem hiding this comment.
nice callout utility
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.
Part 4 of 5 — Zola component migration.
Merge in order.
This is the main upgrade. CI and template syntax have to move together, hence one large PR rather than several small ones.
CI — replaces the pinned 0.22.1 curl install with
taiki-e/install-actionforjustandzola, and callsjust buildinstead ofzola build, which builds the tailwind css first.Templates —
templates/shortcodes/becomestemplates/components/. Currently, only includescalloutandversioncomponents, the latter to standardize version updating. Theraw_tableandload_tableshortcodes are gone because of #N3. Themacros.htmltemplate is also removed. Theguidecomponent is now defined insidebar.html, the only place it is used, andpage.htmlinlines the TOC markup thatmacros::toc_itemsused to render.CSS —
.z-codebecomes.giallo, matching the class prefix the newer Zola derives from the highlight theme name.Content — Had to gsub all the macro calls in markdown content and replace with, e.g.,
{% <callout type="x"> %}, which I must say, is a much much better syntax. This is the bulk of the diff.