Goodbye Wordpress, hello Hugo!
vNinja.net has been powered by Wordpress since it was launched back in 2010, and frankly it was time for a change. What really triggered it, was my hosting providers unwillingness to upgrade basic things, like PHP versions and MySQL. That combined with the security issues you have to live with when using traditional shared hosting made me look around for alternatives. While looking at hosting options, it slowly dawned on me that perhaps I should be looking at doing something completely different.
After looking around a bit, I started playing with Hugo, and it just kind of stuck with me.
The allure of everything being static, just plain old files written in Markdown was just impossible to resist.
So, what you’re accessing right this very moment, is the new vNinja, in its new Hugo powered static glory over HTTPS-only!
When I discovered that I could combine Hugo, Github and Netlify it just clicked. I can now edit — and preview — locally, wherever I am, check in changes to GitHub and the Netlify’s Continous Development takes care of updating the site automatically:
I’ve even created a Slack-bot that notifies me of the status of the checking and publishing, to make sure I catch it when I mess things up:
Added bonus: Being able to use whatever editor I fancy to edit this thing, at the moment Visual Code looks like it will do the job just right.
I’ve spent quite a few hours playing around, exporting all the existing vNinja content out from Wordpress and convert them over to the new Hugo format (and writing a new about page), and I’ve tried to make all old URLs work. I’ve updated quite a few posts with proper Markdown syntax, and I think I’ve managed to get most of the kinks ironed out. If you notice anything that looks weird, let me know via Twitter.
There is a few things I know isn’t working, or missing:
- Search is missing, I’ll add that later — Sneak preview here
- Author pages for guest authors, and how to handle multiple authors/guest posts in general.
- Various theme tweaks — it’s a work in progress. Please provide feedback, if you have it.
- Favicon is not working right now, need to intestigate that.
- Not quite HTTPS only at this point, seems I might have to change some things to make that happen.
The theme itself is a work in progress, expect changes or breakage. Or both.
I’ll do a writeup of the Wordpress to Hugo conversion process, and challenges I met, as well as the Netlify setup later on. For now, I just wanted it to go live.