crazy-toads.github.io/_layouts/default.html

60 lines
1.9 KiB
HTML
Raw Normal View History

2017-08-08 19:53:28 +00:00
<!DOCTYPE html>
<html lang="en-us">
<!--
====================================================
Homepage: {{ site.url }}
Credits: {{ site.url }}/disclosure
====================================================
-->
{% include head.html %}
2017-08-13 09:21:41 +00:00
<body class="theme-base-0b">
2017-08-08 19:53:28 +00:00
{% include sidebar.html %}
<!-- Wrap is the content to shift when toggling the sidebar. We wrap the
content to avoid any CSS collisions with our real content. -->
<div class="wrap">
<div class="masthead">
<div class="container">
<h3 class="masthead-title">
<a href="{{ site.baseurl }}/" title="Home">{{ site.title }}</a>
<!-- <small>{{ site.tagline }}</small> -->
<div class="headicons">
2017-08-22 07:33:39 +00:00
<small><a href="{{ site.url }}/apropos" rel="me" title="About"><i class="iconm iconm-user"></i></a></small>
2017-08-08 19:53:28 +00:00
<small><a href="{{ site.url }}/blog" rel="me" title="Blog"><i class="iconm iconm-quill"></i></a></small>
<small><a href="{{ site.url }}/contact" rel="me" title="Contact"><i class="iconm iconm-envelop"></i></a></small>
</div>
</h3>
</div>
</div>
<div class="container content">
{{ content }}
{% include footer.html %}
</div>
</div>
<label for="sidebar-checkbox" class="sidebar-toggle"></label>
<script>
(function(document) {
var toggle = document.querySelector('.sidebar-toggle');
var sidebar = document.querySelector('#sidebar');
var checkbox = document.querySelector('#sidebar-checkbox');
document.addEventListener('click', function(e) {
var target = e.target;
if(!checkbox.checked ||
sidebar.contains(target) ||
(target === checkbox || target === toggle)) return;
checkbox.checked = false;
}, false);
})(document);
</script>
{% include scripts.html %}
</body>
</html>