Hello! I’m still alive.
Just 2 years after our first edition of kicking out javascript here we are again, reducing the size and processing time of the website.
Yes, it was pretty light but we can go FURTHER! Also we want this to be viewable by obsolete browsers, of course. New things are not always progress when we can simplify.
The only javascript that I had at this moment was the highlight.min.js
, a
javascript code in charge of handling code highlights. Some time ago I
discovered that Hugo has now included Chroma
for syntax highlighting. This is done in compile time and colored with just a
CSS file, so… I was up to try it.
Size-wise it is similar, but now it does not require javascript processing, so we provide a very static website.
In case you are like me, you just need to remove the partial
html which
includes the highlight.min.js
(or other name). Then just change your regular
syntax markdown quotes to what the hugo website indicates.
Good luck reducing your website!