From Ghost to Hugo
I’ve been running this blog on Ghost for a while now. It started with just curiosity of trying something that wasn’t Wordpress. But over time I just didn’t write much, there has alwyas been a weird friction with me and CMS systems.
Didn’t help that Ghost had some security issues where remote calls could query the DB entirely, a few days ago I remembered the good ol’ days where I would write in Hugo, simple, just markdown, same as my obsidian notes. And hence this journey started.
Why Hugo
I don’t need major excuses to decide over one or other platform. Ghost is create for marketing but I write mostly for myself, I would be surprised if anyone ever reads this, hi if you do. Hugo is simple and fast, stating generated HTML from markdowns is not that different from my Obsidian usage which I use daily for notes.
The migration
Ghost has a built-in export feature that produces a JSON file with all your posts, tags, and metadata. From there it was straightforward to convert everything to Hugo-compatible markdown.
The trickier part was images. Ghost stores images in its own content directory and references them with internal URLs. I ended up setting up Garage, a lightweight self-hosted S3-compatible object store, to host images separately from the blog repo. This keeps the git repository lean, no binary files, just markdown and gives me a proper place to store media going forward.
Internal links between posts also needed updating since the URL structure changes between Ghost and Hugo, but that was a quick find and replace across the content directory.
The theme
I’m the worst at UI decisions, ended up deciding on PaperMod. It’s clean, fast, supports dark mode out of the box, has good code block styling, and table of contents support for longer posts.
I created some shortcodes for a gallery of images and image links so I don’t need to write as much
It does exactly what I need without getting in the way.
Automation
I think one of the first things I installed in my homelab was gitea, I pushed a few basic stuff like my bash files and then never touched it again. I had this idea of automating deployments through CI pipelines and even installed the gitea_runner but that was it, never properly did anything with it.
Having this blog that I need to push, build a docker image and deploy was the excuse I needed to spend a friday night until 2AM setting this thing up.
I now have a fully automated pipeline where pushing to the main branch builds a Docker image, pushes it to my self-hosted container registry, deploys it to my homelab via Portainer, and updates the reverse proxy configuration, all without any manual steps. I’ll cover the details of that pipeline in a separate post since it’s interesting on its own.
For images I just drop them into the static/images folder which I gitignored and run a small script to sync images with garage s3-like api.
For the sake of an example asked Claude to create this svg
What I lost
Ghost’s membership and newsletter features, not that I was using them.. but you can’t subscribe now to an empty newsletter :)
In Ghost was easy to setup header images and add more complex content into it. Again, I want to keep it simple and hence why the change but is not there anymore.
Would I go back?
Time will tell but I don’t think so. Everytime I opened Ghost I just procrastinated it and moved to another thing, writing in markdwon feels home to me.
I don’t need to worry about security issues, It’s HTML after all, have fun with it.
I don’t need to worry about my email setup shenaningans. Now it works and that’s great but I can write blogposts even if it doesn’t, while in Ghost was a requirement to log-in.
If you’re running Ghost purely as a blog without the membership features and find yourself doing more maintenance than writing, Hugo is worth considering. The migration is less painful than I imagined it to be.