I've been a passionate software developer for almost 30 years and currently a tech-savvy IT manager. In my spare time, I tinker with things like this blog, because creating software never lets you go. Here is more about me ...
Hexo: Determine and Use Online Status
I have customized my Hexo installation a lot over the last few years to generate my blog kiko.io. This mainly concerns countless generators that help me to create content aside from posts and integrate it into the structure. There are also a few that have to load data from external web servers, such as my Blogroll.
Sometimes I also travel to areas with only limited Internet coverage, as I am currently doing in the mountains of South Africa, and of course all those generators that need external data throw errors and the build process stops. Changing code on the off chance, committing it and hoping that the GitHub Action doesn’t throw any errors is, to say the least, suboptimal. A small automatic switch was needed to at least allow me to build and test the new feature when working on the blog, as long as one of these generators is not affected.