4 {% include head.html %}
8 {% include sidebar.html %}
10 <!-- Wrap is the content to shift when toggling the sidebar. We wrap the
11 content to avoid any CSS collisions with our real content. -->
13 <div class="masthead">
14 <div class="container">
15 <h3 class="masthead-title">
16 <a href="{{ site.baseurl }}/" title="Home">{{ site.title }}</a>
17 <small>{{ site.tagline }}</small>
22 <div class="container content">
27 <label for="sidebar-checkbox" class="sidebar-toggle"></label>
31 var toggle = document.querySelector('.sidebar-toggle');
32 var sidebar = document.querySelector('#sidebar');
33 var checkbox = document.querySelector('#sidebar-checkbox');
35 document.addEventListener('click', function(e) {
36 var target = e.target;
38 if(!checkbox.checked ||
39 sidebar.contains(target) ||
40 (target === checkbox || target === toggle)) return;
42 checkbox.checked = false;