Moving to Hugo⌗
I started this blog as my first blog using a static website generator. Back then i used what everyone else was using: Jekyll.
But Jekyll has it problems. I don’t use Ruby for anything else and the management of the dependencies / ruby versions / etc of my static blog was too much for me.
I blog way more often in german on my other WordPress sites and one of the main reasons is that it is easier and Jekyll wasn’t as easy as i expected.
So i switched to Hugo today. Hugo is written in Go and available as a binary - so no more dependencies! Yay! Its also faster! Yay again!
But then i installed a theme which required npm Packages … So let’s see how happy i will be managing this dependencies …
Notes about URL rewrite⌗
So there are many articles about switching from Hugo to Jekyll out there. Basically the
hugo import jekyll jekyll_root_path target_path command from Hugo converts your posts and then you need to manually edit the config, install a theme and copy your custom pages to ‘content’.
But one thing was missing what no other article i found mentioned: What if you want to have the same URL Scheme like Jekyll had in your older posts (so links to them still work) but use the default Hugo URL Scheme for new posts?
That is possible! You can define custom URLs for each post. My first blog post looks like that:
--- date: "2017-02-14T20:03:23Z" title: First try of Jekyll tags: [jekyll, first, post] url: "jekyll/first/post/2017/02/14/first-try-of-jekyll.html" ---
So if you look at the URL of that old post it has the old style from Jekyll but this post about switching to Hugo has the new URL Scheme.