Goodbye Jekyll, Hello Hugo
I took a long break from writing to the blog due to a severe case of laziness. After a long time I was not even able to run it locally again :(
So now I want to restart my blogging hobby with fresh content, design, and a new framework. This post is about how I migrated my blog from Jekyll to Hugo.

I had a good time with the Jekyll platform. The main issue for me was about managing gem updates, ruby versions and having a stable local development.
Since I don’t post often, I would rather have a framework with the least amount of moving parts. Hugo seems to be a bit better in this regard (let’s see how long it will last).
Why not Jekyll
At first I thought about just updating the ruby gem, which of course did not happen nicely. Then I thought about updating the jekyll base altogether, which also caused issues with my version of ruby.

In the end I was happy to step out of the framework instead of fixing all my mess.
Why Hugo
No specific reason. Hugo seems easier to maintain and more lightweight.
|
|
Build times seem pretty good too, compared to Jekyll.
Hugo Theme
The theme used is called “Even”, with some small modifications to match the layout of the jekyll version used previously
Custom post cover image
In order to display a cover image for each post I had to create a custom layouts/post/summary.html file with this additional content:
|
|
This will add the image in the image parameter in the front matter (if any) as the post image cover.
The no-fancybox tag is used to disable the fancybox wrapping for images in the home page.
In order to do this a custom js resource was created in static/js/custom-fancybox.js:
|
|
This custom js file needs to be included in config.toml
|
|
Migration
Migrating the old posts was a simple task, since the format almost matches the one expected by Hugo.
|
|
The only difference was in the front matter definition, and the insertion of a tag to limit how much of the post will be displayed in the home page.
Nothing that an AI-generated bash script couldn’t handle
Hopefully it will be easier to maintain and we will have posts more often