-
Notifications
You must be signed in to change notification settings - Fork 5
/
default.hbs
83 lines (70 loc) · 2.06 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
79
80
81
82
83
<!DOCTYPE html>
<html>
<head>
{{!-- Document Settings --}}
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
{{!-- Page Meta --}}
<title>{{meta_title}}</title>
{{#if meta_description}}
<meta name="description" content="{{meta_description}}" />
{{/if}}
{{!-- Mobile Meta --}}
<meta name="HandheldFriendly" content="True" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
{{!-- Brand icon --}}
<link rel="shortcut icon" href="{{asset "favicon.ico"}}">
{{!-- Styles'n'Scripts --}}
<link rel="stylesheet" type="text/css" href="{{asset "origami.bundle.css"}}" />
{{!-- Ghost outputs important style and meta data with this tag --}}
{{ghost_head}}
</head>
<body class="{{body_class}}">
{{!-- The blog navigation links --}}
{{navigation}}
<div class="site-wrapper">
{{!-- All the main content gets inserted here, index.hbs, post.hbs, etc --}}
{{{body}}}
{{> "footer"}}
</div>
{{#is "tag"}}
<script>
window.origamiPagination = {
context: "tag",
data: "{{tag.slug}}",
pagination: {{pagination.page}},
limit: {{pagination.limit}}
};
</script>
{{/is}}
{{#is "author"}}
<script>
window.origamiPagination = {
context: "author",
data: "{{author.slug}}",
pagination: {{pagination.page}},
limit: {{pagination.limit}}
};
</script>
{{/is}}
{{#is "index"}}
<script>
window.origamiPagination = {
context: "index",
data: "",
pagination: {{pagination.page}},
limit: {{pagination.limit}}
};
</script>
{{/is}}
<script>
window.origamiBaseUrl = "{{@blog.url}}";
</script>
{{!-- jQuery needs to come before `{{ghost_foot}}` so that jQuery can be used in code injection --}}
<script type="text/javascript" src="//code.jquery.com/jquery-1.12.0.min.js"></script>
{{!-- Ghost outputs important scripts and data with this tag --}}
{{ghost_foot}}
{{!-- The main JavaScript file for Origami --}}
<script type="text/javascript" src="{{asset "origami.bundle.js"}}"></script>
</body>
</html>