I started building static sites last July when I created a site for my family’s recipes. This site is just a JSON file for data and a single page app for the display. Very basic. About a month ago I rewrote my theTodd.com web site using Hugo. The process was very straight forward. I wrote a simple Python script to take the XML backup of the site and output a bunch of Markdown files. I then massaged the markdown to remove the remaining HTML and the site was done!
Anyway, back to this site. Panicked, I quickly checked the database and it was running just fine. So I grabbed a backup of the data and began the task of rewriting this blog using Hugo. I rewrote the Python script to take the RSS output of this site and output markdown. Then I massaged the markdown to remove the remaining HTML just like I did with my other site. Finally, I tracked down a backup of the images that were used in the old site and put them in the appropriate blog entries here. Finally I uploaded the whole thing to source control.
Now, I have a trigger on source control that builds the Hugo static site and copies the public folder to Azure Blob Storage. Blob storage has a CDN in front of it and that’s how I serve this site! It’s the same infrastructure I use for two other sites now and it’s really handy.