forked from curiositry/mnml-ghost-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.hbs
96 lines (77 loc) · 3.37 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
84
85
86
87
88
89
90
91
92
93
94
95
96
<!DOCTYPE html>
<html lang="en">
<head>
{{! Document Settings }}
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
{{! Page Meta }}
<title>{{meta_title}}{{#is "post, page"}} — {{@blog.title}}{{/is}}</title>
<meta name="description" content="{{meta_description}}" />
<meta name="HandheldFriendly" content="True" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="shortcut icon" href="{{asset "favicon.ico"}}">
{{! Styles'n'Scripts }}
<link rel="stylesheet" type="text/css" href="{{asset "css/main.css"}}" />
<!-- For speed, I’ve added the response from this link straight into defer.css-->
<!--<link rel="stylesheet" href="//brick.a.ssl.fastly.net/Source+Serif+Pro:400,700/Source+Sans+Pro:400,900,400i,900i/Alegreya:400i,700i">-->
{{! Ghost outputs important style and meta data with this tag }}
{{ghost_head}}
</head>
<body class="{{body_class}}" id="body">
{{! Everything else gets inserted here }}
{{{body}}}
<footer class="site-footer">
<a class="subscribe icon-feed" href="{{@blog.url}}/rss/">
<span class="tooltip">Subscribe!</span>
</a>
<!-- Uncomment if you want a copy of your navigation in the footer. It’s pretty cool, and gives your visitors something to do when they finish an article other than commenting, sharing, or closing the tab. -->
<nav role="navigation">
{{navigation}}
</nav>
<section>
<span class="print-data copyright-notice">
© {{date format="YYYY"}}
<a href="{{@blog.url}}/">{{@blog.title}}</a>
•
</span>
<span>
<a href="http://github.com/curiositry/mnml-ghost-theme">mnml</a>
theme by
<a href="http://curiositry.github.io">Curiositry</a>
</span>
<span>
•
Proudly published with
<a href="https://ghost.org"><span class="icon-ghost typl8-zeta"></span><span class="hidden">Ghost</span></a> </span>
</section>
</footer>
<!--
This generates a handsome modal menu and hamburger icon. If you want to use it, edit menu.hbs and add your links (line ~146), then remove the ! from this helper to activate it.
-->
{{#if @blog.navigation}}
{{>menu}}
{{/if}}
<!-- Ghost outputs important scripts and data with this tag -->
{{ghost_foot}}
<!--
This loads katex.hbs in; if a page has anything with the class .math, katex.hbs loads Khan Academy’s Tex math typesetting library and runs it on the content.
If you don’t want to use KaTeX, comment this out.
-->
{{>katex}}
<script>
var cb = function() {
var l = document.createElement('link'); l.rel = 'stylesheet';
l.href = '{{asset "css/defer.css"}}';
var h = document.getElementsByTagName('head')[0];
h.parentNode.insertBefore(l, h);
};
var raf = requestAnimationFrame || mozRequestAnimationFrame ||
webkitRequestAnimationFrame || msRequestAnimationFrame;
if (raf) raf(cb);
else window.addEventListener('load', cb);
</script>
{{! The main JavaScript file for Mnml (Look, ma! No jQuery!)}}
<script async src="{{asset "js/index.js"}}"></script>
<script defer src="{{asset "js/prism.min.js"}}"></script>
</body>
</html>