It was 2014. I was living with my wife in Beijing and decided I'd like to write about some of our experiences. I'm Todd, and she's Ziqin, so tztravels.com was born (Todd and Ziqin's Travels). At the time I did all of my hosting on HostGator, so I added another WordPress site there and started blogging away! Over the next couple years we added several posts, and then if you go look you'll see February 2016 was the last post for quite a while! What happened? Well, our son, Nikolai, was born a few months after that and our lives got busy!
The blog stayed up, until the credit card paying for HostGator expired sometime in the early 2020s (I don't even remember when now), and I didn't notice right away. By the time I realized it, the site and all its backups were gone. The next time tztravels.com came up for renewal I decided to turn off the auto-renew and let it go.
Fast forward a few more years, to earlier this year in fact, and I decided it was time to resurrect the blog! I had an idea. This idea was inspired by something I had done for my work at RaiseMe. There we also had a WordPress blog, but after getting acquired by CampusLogic we decided we didn't want the security hassle of dealing with WordPress and wanted to turn it into just a static site. To do that I wrote a script that just downloaded the HTML and other assets from the site and uploaded them to S3 (and did some rewriting to make sure everything still worked) and then just routed the /blog path on www.raise.me to that bucket.
I had wanted to do the same thing with tztravels.com for some time, but didn't get around to it before the hosting expired. But then earlier this year I thought I might be able to save it from the depths of the internet archives! I found the site on the Wayback Machine and soon I wrote a script to download it and re-registered the domain tztravels.com!

Getting a usable copy out of the Archive was its own little project. The Archive's index was returning errors, and a ready-made downloader never produced a tree I could use. So I wrote a small crawler that starts at that homepage and follows links that belong to the same capture: posts, categories, the map, the theme, and the uploads. The first pass landed about 187 files. That night it became a Git repository wrapped in a Next.js app. The first commit message was "Wayback mirror as Next.js static site."
A mirror is not a website. The logo still jumped back to web.archive.org. The photos were still Archive URLs. "Leave a Reply" and the old email-subscribe box were still sitting under posts nobody could comment on. I stripped those out, rewrote the links so they stayed on the site, and downloaded the images.
The photo pile was the surprising part. The public copy held 819 JPEGs, still filed the WordPress way under year and month folders. I flattened every one into a single images folder, uploaded them to FireImg, and pointed the pages at the FireImg URLs. Home and category cards now get optimized versions that render just the right size image. Posts ask for larger images. Once that was true, the local copies came out of the repository. They were a little over a gigabyte, and the site no longer needed them.
A few pages had to be rescued one at a time. The Vancouver URL in that March 5 crawl was not the Vancouver post. It was a Pinterest pin page that had been archived under our address. The real post was a February 18, 2016 capture, so I pulled that HTML, pointed its photos at FireImg, and put it back.
Early in April the old blog went up as the new Next.js app that just read the old HTML and rendered it. All those posts from the first time I went to Hong Kong up through Ziqin's and my trip to Vancouver, BC while she was pregnant with Nikolai were live again!
I was happy to have recovered that bit of family history, and all the photos! I wanted to be able to post new things, though, so that became the next project!
Writing again
It wouldn't be until August that I got around to building a way to write new posts. I wanted a nice editor like WordPress was, but without standing up WordPress again! I wanted to keep all the old posts on the same site. Any images I added to new posts I wanted to upload to FireImg, which makes it nice and easy to serve them and resize them on demand, just by using URL parameters!
So I made a custom editor that is hosted on my home server (which you can read more about in this series, which I still need to finish). Drafts live in the new tool, just stored in an SQLite database. Publishing doesn't change tztravels.com directly. It writes a Markdown file into the tztravels.com repository and pushes it, which forces the site to rebuild from that push. The public URL is just the slug. I made sure all the slugs from the original WordPress posts were "reserved" so that a new post cannot overwrite any of them. I added simple scheduling. If the scheduled time is in the future, it doesn't push the file until that time has passed. I also have a separate way to publish a preview so I can see what the post would look like before it goes live.
I was already living here in China before I built that small CMS. It is hosted back in Oregon, and is working great! I'm actually using it to write this post as well. The tool itself can only be accessed if you're on our VPN. There's no public address.
I named the tool Beltira, which is another name from the Belgariad book series (you can read about the naming scheme in this post). The first post I published with Beltira was about our move to Hainan, China. I published it, unpublished it, and then published it again! Everything was working, and I've been using it ever since!
Then the design
I was thrilled to have the site working again, and to be able to publish new posts! However, it still just looked like a WordPress theme I had bought years ago. I wanted a new look for the site, but I'm no designer! That's when I leaned on a workflow I had tried when making a couple of pet projects (blinkersarenotoptional.com and blinkersareoptional.com) where I have Claude Design handle the designing, while I have Cursor do most of the building. In my experience so far, Claude Design is much better at design than Cursor is, but I still use Cursor for most of my coding because I seem to get a lot more use out of it before I hit any limits!
So I gave Claude Design a new task. I had it design a new look for tztravels.com, and after some back and forth, I liked what it came up with! I still might do some more iterating, I think the text on the home page might be taking up a bit too much space, but for now it works! Normally, I'd download the design and give it to Cursor to implement, but on this one I actually let Claude do the heavy lifting on the implementation as well and put in a PR, then I had Cursor fix it up and merge it.

All in all, recovering the old travel blog from the Internet Archive was a pretty fun project, and it's been a pleasure writing new posts on it.
