forked from poole/lanyon
-
Notifications
You must be signed in to change notification settings - Fork 23
/
default.hbs
78 lines (63 loc) · 2.55 KB
/
default.hbs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<!DOCTYPE html>
<html lang="en-us">
<head>
<link href="//gmpg.org/xfn/11" rel="profile">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="HandheldFriendly" content="True" />
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<!-- Enable responsiveness on mobile devices-->
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
<title>{{meta_title}}</title>
<meta name="description" content="{{meta_description}}" />
<!-- CSS -->
<link rel="stylesheet" href="{{asset "css/poole.css"}}">
<link rel="stylesheet" href="{{asset "css/syntax.css"}}">
<link rel="stylesheet" href="{{asset "css/lanyon.css"}}">
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=PT+Serif:400,400italic,700%7CPT+Sans:400">
<!-- Icons -->
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="{{asset "apple-touch-icon-precomposed.png"}}">
<link rel="shortcut icon" href="{{asset "favicon.ico"}}">
{{! Ghost outputs important style and meta data with this tag }}
{{ghost_head}}
</head>
<body class="{{body_class}}">
{{navigation}}
<!-- 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="{{@blog.url}}" title="Home">{{@blog.title}}</a>
<small>{{@blog.description}}</small>
</h3>
</div>
</div>
<div class="container content">
{{{body}}}
</div>
</div>
{{#if @blog.navigation}}
<label for="sidebar-checkbox" class="sidebar-toggle"></label>
{{/if}}
{{#if @blog.navigation}}
<script>
(function(document) {
var toggle = document.querySelector('.sidebar-toggle');
var sidebar = document.querySelector('#sidebar');
var checkbox = document.querySelector('#sidebar-checkbox');
var trigger = 'ontouchstart' in document ? 'touchstart' : 'click';
document.addEventListener(trigger, function(e) {
var target = e.target;
if(!checkbox.checked ||
sidebar.contains(target) ||
(target === checkbox || target === toggle)) return;
checkbox.checked = false;
}, false);
})(document);
</script>
{{/if}}
{{! Ghost outputs important scripts and data with this tag }}
{{ghost_foot}}
</body>
</html>