Funnily enough Astro's compiler is written in Go just like Hugo, although it's compiled to WASM so no need for multiple binaries :D
Visually the resulting HTML is basically the same, I used Astro's builtin <Code /> component though which uses shiki as opposed to Highlight.js. The only JS we send to the client now is for the tabs, highlighting the code on hover and to switch themes :)
Another difference is I got rid of Gulp and just compile styles with the CLI, resulting CSS is now leaner though due to newer autoprefixer versions which drop support for Microsoft browsers and took some updates to WebKit and Firefox into account.
Funnily enough Astro's compiler is written in Go just like Hugo, although it's compiled to WASM so no need for multiple binaries :D
Visually the resulting HTML is basically the same, I used Astro's builtin
<Code />
component though which uses shiki as opposed toHighlight.js
. The only JS we send to the client now is for the tabs, highlighting the code on hover and to switch themes :)Another difference is I got rid of Gulp and just compile styles with the CLI, resulting CSS is now leaner though due to newer
autoprefixer
versions which drop support for Microsoft browsers and took some updates to WebKit and Firefox into account.Preview here