I mentioned previously I was going to migrate the site to be a static-generated site. After more than a week’s hacking with Lektor, I can finally complete the migration. This blog post will be the first hosted on the new site, so if you’re reading this, welcom!
The migration isn’t difficult (this site is very simple to begin with), but didn’t go without some trouble. After some investigation (Jesse’s experience helped a lot—and he even used MacDown to help the process!) I had to give up on GitHub Pages, and decided to deploy to Netlify instead. One feature is particular is they offer a very straightforward way to handle HTTP redirects, and with a custom build process I am able to maintain full compatibility to the old site’s URL rules. Built-in Python support also made deploying way simpler than GitHub Pages. All I need to do is to push to my GitHub repo, and sit back.
There are still some rough edges I would like to address to. The site now uses Remarkable to render Markdown, KaTeX for math, and Prism for syntax highlighting, and all of these are done at server-side (i.e. compile time), so now every blog post you view is fully static.
In the mean time, I hope this new site is at least as enjoyable as the old one. And if you find any problems, please, please open an issue to tell me! This would really help a lot.