Blog Reimplemented
When I first started university, I began using Farbox to write my blog. At that time, the idea of simply placing a txt file in a cloud storage service to automatically generate a blog website was eye-opening for me. Time has passed, and Farbox is no longer updated, making it quite inconvenient to host a blog there. I couldn't use Cloudflare, the server was on Tencent Cloud in Hong Kong, and since I used Farbox's blogging service, I didn't directly deploy its open-source version. Therefore, even if I added features to Farbox's Python project, my own blog couldn't benefit from them, and so on. So today, I took some time to reimplement the blog using Nuxt and deployed it on my own k8s cluster.
Using Nuxt Content, I also implemented a mapping mechanism similar to Farbox. For example, content/Books is automatically recognized as the Books category, while content/Books/2024-06-09.md is automatically recognized as this article.
The new blog system adopts a new URL routing rule, placing all articles under /articles/:title. At the same time, it is compatible with the old rules, redirecting /post/:category/:date to the new links with a 302 status, ensuring that previously existing links on the internet can still be accessed normally.
The code is open-sourced on GitHub portwatcher/blog
In the future, I may often update my blog program to display richer content and provide readers with a better reading experience.