I finally removed all the Javascript from this site
by Tullio Facchinetti
According with my love for minimalism and uncluttered solutions, I finally managed to reorganize this website to remove all the Javascript-based parts and plugins.
This website is generated using the well-known static website generator Hugo.
The most “structured” content, such as the list of theses, projects, reviews, etc. is generated by Python scripts that I wrote to fetch information from some CSV files and to produce the Markdown content by means of Jinjia2 templates. The generated files become then part of the website and are converted into webpages by Hugo.
The original website
The previous version of the website was using a customized Hugo theme derived from Hugo Bootstrap, which in turns is based on the widely used Bootstrap framework from Twitter and the JQuery library. The main features that I used from Boostrap were labels, some beautiness here and there, and - most importantly - the menu, based on the Boostrap navbar-expand-md class, and the sidebar.
The “weight” of the website was still acceptable, by I disliked the need to point to external website for the CSSs and the JQuery packages. Moreover, the upgrade from Boostrap 3 to 4 was not that easy, and now there is Bootstrap 5 to chase…
Overall, a good moment to think about a different solution.
Bootstrap out, pure CSS in
The goal was to use the simplest possible layout which would be adequate to browsers on both computers and smartphones, without Javascript (as much as possible), and possibly using CSS only.
The current organization of the website is the result of using the Hugo Bearblog theme, with the necessary customizations (CSS, templates, Hugo partials, etc.), and a reorganization of some content.
The menu is a pure list of links. The number of items was reduced to unclutter the head of the page. On the other hand, the sidebar has gone. Highlights, list of recently updated pages, and the list of categories have been moved to the bottom of the page.
A result that I am quite happy of.