Migration from Hatena Blog
2022-11-23
I have migrated my blog from Hatena Blog to GitHub Pages. I do not have any complaints about Hatena Blog, and I would recommend it if somebody asked me which blog service to use. However, I have decided to switch the blog service for three reasons.
The first reason is that I wanted to implement an article's validation script. When I typed codes written in a book or a website, sometimes I could not run them because they were outdated. If I prepare a script that checks if the code in an article works correctly and run it on GitHub Actions with cron, I can notice if it fails. Of course, the script would only be meaningful if it was written correctly. Also, the script cannot detect the deprecation of APIs or a proposal for a better method. Still, it would be good to guarantee that the code would always work.
The second reason is that I can copy articles easily on my local machine. While the content of a Hatena Blog can be exported, the format is always fixed to HTML. Also, I need to manipulate the web browser to do so. On the other hand, I felt it easy to use GitHub Pages because I can keep the articles in markdown format and copy them by a single command. I wanted a way to store them quickly for a rainy day.
The third reason is that I wanted to try HTML, CSS, JS, etc. Of course, I can try them on Hatena Blog, but using GitHub Pages was better because I can try a broader range of things.
That's all.
I have decided to use Zola. I think there are other tools to create a static website, but I have chosen it because Writing an OS in Rust which I often browsed used it, and because its source code is publicly available.