Now compatible with light web browsers

After reading an article on Drews blog about visurf which is based on Netsurf and his encouragement to make more sites compatible with this light browser I decided to take a look at my little blog and found the horrible state it was in.

By looking at my blog from the perspective of the modern web it looked minimal and nice, but on the inside the theme I decided to base my blog on was using pretty modern styles a features which I had to get rid of.

The first thing I noticed was that my color scheme was not respected and I thought (mistakenly) that Netsurf is not being able to even color the background. But in the closer look my styles were using at some parts modern CSS3 (I guess) variables to set theme colors.
Netsurf does not know such a thing for style. My solution was simple, to move the color scheme style generation to the server side and thus I rewritten it to use SASL which provides same features regarding my use of variables as the previous modern solution.

AT this point I called it done and stopped working on it, since it looked kind of usable. But who would have thought it would stay in my head and thus I had gone on another journey of backward web development.

The other big point was to get rid of modern CSS options and replace them with older and supported ones and also while at it make it look much nicer in w3m since it is nice terminal “web browser”. There was only one feature used from modern CSS and that was display: flex; and its other options which are unsupported but makes it really easy to make webpage look nice with whatever elements. I somehow managed to replace most of the flex elements part with either float: left/right; and by NOT using div for everything but instead instead using span or removing it and reworking the part to look the same. I still kept the flex display option for the mobile view since it makes it just so easier for me to make (otherwise I would not even bother with mobile view, who is even using such evil devices to vie my blog anyway?).

These changes make it look almost same in modern web browsers and Netsurf also caught with them (round corners are not supported at the moment). The bonus of reworking it and getting rid of many divs is that menu and links, tags are now on the same line in w3m, while before each link, tag was on its separate line. This makes it look better in my eyes.

I also played with my video template and the alternative text is now nicely formatted and it even displays the file size of the video.

All in all it is a change which only few will ever notice (since I believe there is nobody apart from me who reads this blog.

Articles from blogs I follow:

Why is your open source project still hosted on GitHub?

Perhaps the younger generation don't know anything about the past "evils" of Microsoft and naively believe that Microsoft is now the good friend to open source, but the truth is that all Microsoft acquisitions of open source projects is a busi…

via unixdigest.com May 22, 2025

StarFive VisionFive v2 and FreeBSD

This week I powered up the StarFive VisionFive v2 board that I have. I figured I would give FreeBSD another whirl on it, in the vague hope that RISC-V boards are a more cohesive family than ARM boards were five years ago. tl;dr: I didn’t get it to work as…

via [bobulate] May 20, 2025

Steve Ballmer was an underrated CEO

There's a common narrative that Microsoft was moribund under Steve Ballmer and then later saved by the miraculous leadership of Satya Nadella. This is the dominant narrative in every online discussion about the topic I've seen and it's a commo…

via danluu.com October 28, 2024

Generated by openring