How to build a static blog
When I decided to start a blog there were a few things that I quickly found out from other people that I admire.
1. Always own your data
When you use blog providers like Wordpress, Facebook, Disquss, etc, the data isn’t owned or controlled by you. Moving away from these providers is often hard and you may not be able to move everything that you’d like.
2. You may have to host your own blog
This was the hardest bit. I wanted to have a blog but didn’t want to manage servers, deployments, connectivity issues, let alone pay for the hosting.
This tweet describes what I’d like to avoid:
And seems like my blog is down due to connectivity issues with backend DB. Yay .NET and RavenDB.
— Itamar Syn-Hershko (@synhershko) November 2, 2017
Following up from that he suggests using a static website and this is what I’d like to cover today, how I this website works, currently completely static, including the comments.
Extra requirements
Besides not wanting to manage servers, deployments and backups I also wanted the ability to control a little bit of the style and design without having to go too deep into HTML and CSS.
Markdown is a good solution for doing exactly that.
Chosen Solution
In short, these are the solutions that I chose:
- Static blog engine: Jekyll. It supports Markdown and is simple enough to learn and use (you can host it locally)
- Static comments: Staticman
- Hosting: GitHub Pages works well for me while also providing version control.
- Blog theme: Minimal Mistakes is a great theme. Design and styling aren’t my best strengths and this theme makes everything looks great with minimal effort.
The process that I follow is quite simple:
- Write post locally
- Look at how it looks like on a local Jekyll environment
- Push to GitHub once I’m happy with it
And that is pretty much it. Behind the scenes GitHub pages will compile the source that I just pushed into a complete html static site and automatically deploy it to their production environment.
This is a good idea as I can focus on writing content without having to worry about hosting, backups, performance, scalability, etc. It brings me great peace of mind.

Leave a Comment
Your email address will not be published. Required fields are marked *