markjgsmith

Notes

07:29:00 +07:00 Git based blogging - One of the cool things about basing your blogging platform on git is that you can blog even when offline. I'm still battling illness, my ankles are still intermitently swelling up, which means I can't walk anywhere, including to the place where I get an internet connection, and I'm still coughing up lots of flem. But I can continue to write posts.

I create a feature branch for each day, and I add posts, notes, links etc throughout the day. In normal times the branch would automatically get merged into the main branch and the site would get rebuilt at midnight. But if I'm not able to get online for whatever reason, then I just create the next day's feature branch, merge the previous day's content on my local device. The next time I do manage to get online, all the content I wrote while offline will get published.

Okay sure it's a little jaring that a load of content appears on the site all at once in those situations, but it's still all dated correctly, with the date and time I wrote it. The point is that I can continue blogging pretty much as normal, even when I'm not able to get online.

Git is an awesome tool. Yes there's a bit of a learning curve, but for writing you only really need to learn a few features, and the workflow ends up being quite simple once you have done it a few times. And you then get the benefits of everything being version controlled. #

For enquiries about my consulting, development, training and writing services, aswell as sponsorship opportunities contact me directly via email. More details about me here.