Batch converting JPG and PNG to WebP

I’ve been speed optimizing some of my personal sites, and one easy update is changing the images from being JPEGs and PNG images to the smaller WebP format. All the images I need to convert are usually in collections, where one folder at a time needs conversion and as some contain a lot of images, I needed a way to do it smartly. This is what I came up with:

Posting With Hugo

Switching to Hugo caused a major change in the workflow behind the site. Wordpress comes with a full-featured backend which allows you to manage basically your entire website (if it’s Wordpress powered), but Hugo don’t. There’s no-backend admin site nor an webeditor to create and manage your posts. It doesn’t bother me. It’s a completely different workflow and I’m starting with a rough minimum flow initially untill I get a bit more expirence running Hugo.

Certificate check from Go

As the web moves more and more to HTTPS and ehanced security (such as HSTS) keeping your certificates updated and valid becomes more and more important. I’m toying with an idea of building a small webapp to monitor my small portfolio of certificates and warn me if a certificate is due to expire. As part of this, I’m slowly patching pieces together in Go and one of the small useful outcomes is a small (compilable to bin) script which prints the basic certificate details of a given domain.

Moving content from Wordpress to Hugo

Going from one CMS to another can be huge challenge - especially as I wanted the various pieces I’ve managed to bring along from the past 20 years along (content from the first years of the site is sadly lost over time). Getting content out of Wordpress Getting content out of Wordpress is quite easy. It has a built-in export function and while it took some time, resulting in a large zip file.

Moving from Wordpress to Hugo

This site has been running for 20+ years. Most of the years I’ve been using wordpress to post occasionally and have fun messing around. Wordpress have been a moving target and gained more features through the years. Far more than I ever needed, and to keep simple I’ve decided to move to a simpler setup using the HugoCMS. Getting to here One of the benefits of Hugo is, that it’s easy to have it running locally and rapidly let you see changes and update you make to hugo configuraion, themes and content - and I’ve even used it across Linux and MacOS during migation.