↓ Skip to main content

Migrating to Hugo

·2 mins
The header of the old WordPress site

And we’re back (again!). I’ve been looking to migrate this site from WordPress for some time, not least because of Matt Mullenweg’s spat with WP Engine. Two further factors increased the urgency. The first was having to scrabble around to find a patched runtime to address PHP2Shell; the second, and more pressing, was Verisign’s decision to terminate the .name domain in February next year. (If you have an e-mail address for me with currie.name, you should also swap that for currie.cloud.)

After a bit of indecision, I concluded that I should switch to a static site, using Hugo with the Blowfish theme, hosted on Cloudflare’s free plan. I turned to Claude to help with the migration, and it did a pretty thorough job. It took a dump of the MySQL database and had a poke around my VPS to see what else it could find, before writing a custom script to do the migration. It even resurrected loads of old images that had disappeared when the WordPress/Gallery2 plugin I was using bit the dust, and attempted to find some missing files on the Wayback Machine.

I was probably most impressed when, having directed Claude to switch to a card layout, I pointed out that a lot of the portrait photos were cropped to show people’s midriffs! It then proceeded to use macOS’s face detection to recentre the images. It also created a shortcode to display my GPX files on a Leaflet-based map. It finished off by setting up the 12,000+ redirects, although they will obviously only work until the February deadline.

Of course, the key question is whether the move will be sufficient incentive for me to provide more content. Only time will tell!

Related

Website backup to pCloud

·2 mins
Another SOC website related posting - this time on the subject of backup. The website is backed up by the club’s current hosting provider (Krystal - who, a year in, I can highly recommend) but I was informed that the club had bought a large quantity of cloud storage for the purpose of storing its map archive and, for belt and braces, it made sense to also include backups of the website there.

Creating a Membership List in Drupal 11 with Aggregating Views

·4 mins
I’ve written before about our use of Drupal for the Southampton Orienteering Club website. We’re now on Drupal 11, and my opinions haven’t really changed. Upgrades are still painful, particularly the community modules that we have to leave behind each time. The user experience for creating content also lags behind newer alternatives. We have a significant amount of historical content on the site (not all of it publicly visible), making a move a daunting proposition. In the meantime, as this post demonstrates, we continue to utilise the powerful features that Drupal and its ecosystem offer.