This is my personal blog and I will most of the time use this as a sort of parking space for thoughts and projects.
Some will be about workrelated stuff but more likely it will be about containers and Kubernetes - plus fun projects activities out and about.

Instead of using one of the more boring blog engines out on the internet (looking at you Medium, Blogger and Wordpress) I opted for a Markdown based, static generated blog framework hosted on github pages. I ended up with Hexo.io which is very much like Jekyllrb and Hugo, though something just felt more right for me with Hexo - though I could end up use Hugo if they catch up with Hexo features. I really like their approach, but Hexo had more features that resonated with me.

Setting up github pages was a breeze and the same for setting up an apex domain to point at my Github Page, i.e. just a github repository. I especially love that in github you can set the Custom Domain option in the web UI or just include a CNAME file in your first commit containing the URL to use (in my case transforming darkcloud.github.io to darkcloud.dk)
For comments i use Disqus because integration was easy and because I could not get Gitment to work. The theme is based on Louis Barranqueiro’s very excellent tranquilpeak theme. Seriously, look at his documentation. I wish everyone was as thorough.

Install and configure Hexo

1
2
3
4
5
6
7
8
9
10
$ npm install hexo-cli -g
$ npm install hexo-generator-github --save
$ hexo init myblog.github.io
$ cd myblog.github.io
$ npm install
$ git pull [email protected]/LouisBarranqueiro/hexo-theme-tranquilpeak.git themes/tranquilpeak
$ vi _config.yml #edit _config.yml for settings
$ vi themes/tranquilpeak/_config.yml #edit _config.yml for theme steeings
$ vi themes/tranquilpeak/languages/en.yml #edit author bio, etc.
$ hexo server #opens a local server on http://localhost4000 to see if hexo works

Write posts

1
2
3
4
$ hexo new "Hello World"
$ vi source/_posts/hello-world.md #write post content
$ hexo generate #generate and render static files
$ hexo server #opens a local server on http://localhost4000 to view changes

Publish changes

1
$ hexo deploy #configured in _config.yml to push files to github pages

More info on writing, generating and deployment with Hexo.

Note to self:
My plan is to keep the post syntax as close to Markdown as possible, though Hexo and the tranquilpeak theme does support some pretty cool custom tags for everything from fancybox galaries to alerts and highlighting.

[![Sample Image Added via Markdown](avatar.png)](head.jpg)
[![Everything Is AWESOME](https://img.youtube.com/vi/StTqXEQ2l-Y/0.jpg)](https://www.youtube.com/watch?v=StTqXEQ2l-Y "Everything Is AWESOME")

though the plugin tags are quite elegant