I’ve always wanted to have a blog. The reason is, I want to start documenting my findings before I go senile. I enjoy going back through my documents and relearning what I spent so many hours to learn. Who knows, maybe someone else besides me might find it useful.

My requirements: I want it to be simple yet powerful, anything complicated would simply deter me from doing anything useful. I want it to be on node.js, as I’m primarily a .NET developer by day, but I want to do something else at night. I love Markdown, I want to write in Markdown and just have it published to the world. Preferably, I want it running under a cheap Linux box ;) I want to be able to keep it versioned under git Had to be flexible, as I didn’t want to rewrite my resume :| Brace yourselves, winter is coming Googling around I found wintersmith which seemed to cover my needs.

So, I installed it:

npm install wintersmith -g

Created my site:

wintersmith new carlosiriarte.com

And I got following structure:

bash config.json contents/ templates/

Configuring wintersmith An important part in nowadays SEO world is to make sure that whatever you do online should be explicit about your authorship, so let’s do that:

vim config.json

Silvrback blog image

Sprinkle a bit of Googleness:

vim contents/templates/tags.jade

which contains:

jade // Google Tag Manager noscript iframe(src='//www.googletagmanager.com/ns.html?id=YOUR_ID', height='0', width='0', style='display:none;visibility:hidden') script (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','YOUR ID'); // Eng Google Tag Manager

And finally:

wintersmith build

To build our static site.