Skip to main content

Krokante Krab

Bye Bye Ghost

Until now, my blog lived on an instance of Ghost. It’s good, but in the end it was more than I needed. I decided to use a static site generator. After comparing a few, I landed on Hugo.

# Why Hugo?

First of all, I wanted to keep using markdown. It’s my favorite way of writing any kind of documents. Like blog posts, longer articles, or documentation. I also wanted something that’s actively developed and has a bit of a community behind it.

To be fair, there were lots of possible solutions, but Hugo just spoke to me the most.

# Getting Started

I’ll be honest. Between starting this project and finishing it, there were about 6 months. Not that I worked on it a lot. I spent about 3 evenings on the whole migration. But as much as I wanted to work on it, it wasn’t urgent nor important.

I played around with the hugo cli tool to scaffold a new website. Then I browsed around, looking for a simple but good theme to work with. I ended up picking Anubis2 (for now).

So yeah, I should’ve documented this part better. But oh well, it’s not like I can go back in time. Maybe next time I create a Hugo website I’ll do it.

# Importing Posts

OK, now the big one. How do I get all my existing posts from Ghost, into this website? There is an export function in Ghost, lucky me. It’s one big JSON file though. Seemed like a great opportunity to test my AI subscription (Mistral AI).

Can you go over this JSON file and convert each post to a markdown file. Take this .md as example.

A few minutes and a bit back and forth later, I had all my posts. I went over them manually to check for syntax issues, stale links, … And after about an hour of work, I had all my posts in here. Nice!

# Where to host

Now the next question. Where to host? I have access to some hosting space. But I wanted to simplify it even more. It’s just a static website anyway. So why not just host it next to the repository? Most Git providers have some kind of “pages” feature, where you can do exactly that.

Lately I’ve been intrigued by Codeberg. They support everything I need and more. However, all repositories are public. Fine by me, this website is open for everyone anyway. So why would I even try to block the source?

But I’m out of time for today to get the publish working. The build pipeline works for now. But I haven’t figured out yet how to publish it to the pages.

I’m going to watch the world cup final now. See ya!s