Drop-in replacement for Hugo figure shortcode with responsive img srcset

When I moved this blog over to Hugo slightly more than a year ago, I started using Laura Kalbag’s special img shortcode with img srcset support.

To make a long and interesting story short, srcset enables us to tell the browser that we have for example 5 different resolutions of an image available, and that it should choose the best one based on the user’s device.

Pretty neat actually!

Anyways, I tweaked the code a bit over time, and most recently I combined it with the stock Hugo figure shortcode.

Read More

Weekly Head Voices #192: COVID-19 part 2.

A scene from Stilbaai, my number one favourite new vacation destination, taken on the morning after the lockdown had been announced. We were extremely fortunate to spend our last day of freedom in a place like this.

Greetings, fellow humans!

It’s 16:15 (UTC+2) on Sunday afternoon as I sit here writing this.

The post seems to be mostly planned out, with fragments of text strewn around the editor window right below this sentence.

Read More