Will Jessop's Writings

Sailing, Food, Programming, Technology, and other things

Do you have a Ruby on Rails application you'd like to be faster, more scalable, or just upgraded safely? I'm currently open to new contracts doing Ruby on Rails and Postgres scaling and performance work, and Rails upgrades. Contact me at will@willj.net to get started.
| tags:programming Go tech meta

Converting a wordpress.com dump to Hugo, including images

There are a few “official” options for migrating wordpress content to Hugo, but they are all either cumbersome (requiring installing wordpress in docker) or don’t handle images. I didn’t want to spend too much time on this and definitely wanted images to be converted so wrote a quick program to handle the conversion for me.

In the end I created a somewhat rough, but functional program to do the job and it was successful.

The requirements:

There are some caveats:

Anyway, the code got me 90% of the way to where I wanted the posts to get so worked well for what I wanted it to do and I’d call it a success. I’ve put the code up on Github, I likely won’t need to run this code again, but if it’s useful to you please feel free to submit PRs.