2015-03-26 11:28:08 +00:00
{{ partial "header.html" . }}
2016-08-24 11:12:08 +00:00
< article class = "post" id = "{{ .Slug }}" >
2017-09-11 12:20:15 +00:00
< h1 class = "title" > {{ .Title }}< / h1 >
< p class = "post-date" >
2016-08-24 11:03:32 +00:00
{{ if eq .Section "posts" }}
2016-08-24 11:24:54 +00:00
{{ .Date.Format "2 January 2006" }}
2016-08-24 11:03:32 +00:00
{{ end }}
2016-08-24 11:12:08 +00:00
< / p >
{{ .Content }}
{{ if eq .Section "posts" }}
2016-08-24 11:13:42 +00:00
< aside class = "about" >
2017-09-11 12:20:15 +00:00
2016-08-24 11:12:08 +00:00
< p >
2017-09-11 12:20:15 +00:00
< strong > About Ariejan< / strong > – I'm a software engineer building rock solid back-end systems
using Ruby on Rails, Golang, and Elixir. In my free time I love to
repair audio equipment, experiment with electronics, and play the piano.
2017-03-18 11:33:57 +00:00
< / p >
2016-08-24 11:12:08 +00:00
< p >
2017-09-11 12:20:15 +00:00
< strong > Continue reading< / strong > – Check my list of < a href = "/recommendations" > book recommendations< / a > .
2016-08-24 11:12:08 +00:00
< / p >
2017-05-02 09:57:16 +00:00
< p >
2017-09-11 12:20:15 +00:00
< strong > Get in touch< / strong > – Mention < a href = "http://twitter.com/ariejan" > @ariejan< / a > on Twitter or shoot me < a href = "mailto:ariejan@devroom.io" > an email< / a > (< a href = "/gpg" > gpg< / a > available).
< / p >
2016-08-24 11:13:42 +00:00
< / aside >
2016-08-24 11:12:08 +00:00
{{ end }}
< / article >
2015-03-26 11:28:08 +00:00
2016-10-10 13:53:46 +00:00
< script type = "text/javascript" >
2017-03-20 22:21:16 +00:00
function ready(fn) {
if (document.readyState != 'loading') {
fn();
} else {
document.addEventListener('DOMContentLoaded', fn);
}
}
function imageClick(e) {
e.preventDefault();
this.classList.toggle('zoomed');
}
2016-10-10 13:53:46 +00:00
2017-03-20 22:21:16 +00:00
function handleEsc(e) {
if (e.keyCode == 27) {
var zoomedImages = document.querySelectorAll('img.zoomed');
Array.prototype.forEach.call(zoomedImages, function(el, i) {
el.classList.toggle('zoomed');
});
}
}
ready(function() {
var images = document.querySelectorAll('article img');
Array.prototype.forEach.call(images, function(el, i) {
el.addEventListener('click', imageClick);
2016-10-10 13:53:46 +00:00
});
2017-03-20 22:21:16 +00:00
document.addEventListener('keyup', handleEsc);
2016-10-10 13:53:46 +00:00
});
< / script >
2015-03-26 11:28:08 +00:00
{{ partial "footer.html" . }}