📷 Canale di Tenno ist ein ganzes Dorf, das eine mediterrane Hinterhofatmosphäre versprüht. Absolut sehenswert. Und wenn man schon mal dort ist, sollte man auch unbedingt den nahegelegenen Tennosee besuchen. #FotoVorschlag
Das Zitat ist auf den Punkt. Für mich gilt weiterhin: KI beschleunigt mein Denken, bestimmt es aber nicht.
Bald werden die Tage wieder kürzer. Dann regnet es auch nicht mehr so lange.
🍿 Elite Squad — Im Sumpf der Korruption (★★★★☆) ist die Fortsetzung des ersten Teils und gilt als der meistgesehene Film Brasiliens. Wagner Moura kämpft als Captain Nascimento gegen das giftige Geflecht aus Politik, Polizei und Machtmissbrauch. Ein wütender Blick auf die systemische Korruption.
I just updated my Micro.blog theme to deliver images in a more efficient and responsive way. This means faster page loads, lower data usage, and no more compromises on image quality.
The trick? A clever use of Hugo’s Markdown render hooks, which Micro.blog supports via its theme templates. Shoutout to this helpful thread on the Micro.blog Help Forum, which showed me how to combine srcset, sizes, and Hugo templating to give the browser more flexibility.
Instead of serving a single fixed-size image, I now provide multiple image sizes. This allows the browser to decide which version to load based on screen size, pixel density, and, if supported, even network conditions.
Here is how it works
Create a file at layouts/_default/_markup/render-image.html in your Micro.blog theme with the following code:
Mobile devices get smaller images, desktops get higher-res ones
High-density screens such as Retina can load sharper versions if needed
Browsers may choose smaller images on slow connections or in data-saver mode
Previously, I used a bunch of iOS Shortcuts and external tools to downscale images before uploading them, which worked, but was tedious. Now, that extra workflow is no longer necessary. I can upload the full image and let Hugo and the browser do the rest.
The caveat is that most of my older posts won’t benefit from this. To make them compatible, I would have to swap in the original high-resolution files and replace all HTML-based image embeds with Markdown. That is unlikely to happen, unless I’m really bored someday. Nevertheless, it’s a small change with a big impact going forward, and I love it.
Update · 25/08/2025
I noticed a caching issue with my first implementation: images were constantly reloading instead of being served from the browser cache. The culprit was the unnecessary use of urlquery, which produced slightly different URLs on each render. I removed it, and now caching works as expected, images load instantly once they’ve been fetched the first time.
📷 Zum #Fotovorschlag zum Thema Schifffahrt heute ein besonders frühes Bild aus meinem Archiv: Ein wachsamer Matrose am Bug des eindrucksvollen russischen Segelschulschiffs MIR, aufgenommen im September 2006 in Cuxhaven.