Site overhaul

In the last post I explained why I stopped writing for a year. This one is about the blog itself. The site started out on WordPress, and today I moved it to GitHub + Astro + Cloudflare Pages, which took about three hours

Why migrate

So AI can make all kinds of styles for me, which is a bit easier than WP.

After the migration

Now it’s a static site built with Astro, deployed on Cloudflare Pages, with the code on GitHub and the same domain, zhwe.top. Posts, pages, categories, tags and comments were exported from WordPress into separate JSON files; the images came along too, and old links and paths were kept as they were so older posts still open. The seven language routes are now fixed and translations are prepared ahead of time; search and the footprints map use approaches that suit a static site.

The comment system runs on Cloudflare’s D1 and Pages Functions, among other things.

How it was done

Basically I asked Codex to sort out the architecture and give me a plan. Once I was happy with it, the migration itself took about 20 minutes; the remaining two-plus hours went into all the little details.

Leave a comment