Michael Whelan

behaviour driven blog

Moving my blog to Snow and GitHub Pages

Most of my work has involved ASP.Net MVC and SQL Server, so it seemed natural to gravitate towards blogging platforms that used those technologies. Initially, I used NBlog, which was a great little blogging engine, then I moved to FunnelWeb, which seemed to have a larger community around it and was used by people I knew. My work has expanded a bit to other technologies, such as RavenDB and AngularJS, and I’ve become more open to the idea of using my blog to experiment with new technologies and approaches. I have noticed more and more people moving towards static site generators, and the simplicity really appealed . I also use Git and GitHub a lot more now and the idea of a blog publishing workflow involving Git makes a lot of sense to me. Add in GitHub Pages for free hosting and what could be better?

Snow

When looking around for the right static site generator, I still felt more drawn to .Net-based solutions, so when I stumbled across Sandra.Snow it seemed ideal. My fellow Kiwi Phillip Haydon leads the project and has been amazingly responsive at answering my questions, even writing code to add my feature requests! Sandra.Snow is a Jekyll inspired static site generation tool that can be run locally, as a CAAS(Compiler as a Service) or setup with Azure to build your site when your repository changes. It is built on top of NancyFX, you can easily write your own themes in Razor, and it supports Git deployment. I am hosting it on GitHub Pages, though I am quite tempted to host it on Azure (after reading Filip Ekberg’s excellent post on using continuous delivery with GitHub and Azure with Snow).

Snow uses markdown files for blog posts. I used markdown for both my NBlog and FunnelWeb blogs, so migration was pretty simple. My friend, Jake Ginnivan, had put together a clever little LinqPad utility for migrating posts and images from FunnelWeb SQL Server tables to Jekyll markdown files, and these worked well with Snow.

I already have my comments hosted in Disqus, so coupled with simple markdown files for my blog posts/images, I feel like I’ve got a pretty flexible and portable solution.

About Michael Whelan

Michael Whelan is a Technical Lead with over 20 years’ experience in building (and testing!) applications on the Microsoft stack. He is passionate about applying agile development practices, such as BDD and continuous delivery, to agile processes. These days his primary focus is ASP.Net MVC Core and Azure. He contributes to a number of open source frameworks through TestStack.

comments powered by Disqus
Google

Google