This repository was archived by the owner on Jan 31, 2019. It is now read-only.
forked from TryGhost/Casper
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefault.hbs
More file actions
122 lines (99 loc) · 4.21 KB
/
default.hbs
File metadata and controls
122 lines (99 loc) · 4.21 KB
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<!DOCTYPE html>
<html lang="{{lang}}">
<head>
{{!-- Document Settings --}}
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
{{!-- Base Meta --}}
<title>{{meta_title}}</title>
<meta name="HandheldFriendly" content="True" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
{{!-- Styles'n'Scripts --}}
<link rel="stylesheet" type="text/css" href="{{asset "built/screen.css"}}" />
{{!-- math support --}}
<link rel="stylesheet" href="https://cdn.staticfile.org/KaTeX/0.10.0-beta/katex.min.css" crossorigin="anonymous">
<script src="https://cdn.staticfile.org/KaTeX/0.10.0-beta/katex.min.js" crossorigin="anonymous"></script>
<script src="https://cdn.staticfile.org/KaTeX/0.10.0-beta/contrib/auto-render.min.js" crossorigin="anonymous"></script>
{{!-- hack style --}}
<style>
pre {
word-wrap: normal;
-moz-hyphens: none;
-ms-hyphens: none;
-webkit-hyphens: none;
hyphens: none;
color: #333;
white-space: pre;
}
.editor {
border: 1px solid black;
margin: auto;
height: 200px;
width: 80%;
}
</style>
{{!-- This tag outputs SEO meta+structured data and other important settings --}}
{{ghost_head}}
</head>
<body class="{{body_class}}">
<div class="site-wrapper">
{{!-- All the main content gets inserted here, index.hbs, post.hbs, etc --}}
{{{body}}}
{{!-- The footer at the very bottom of the screen --}}
<footer class="site-footer outer">
<div class="site-footer-content inner">
<section class="copyright"><a href="{{@blog.url}}">{{@blog.title}}</a> © {{date format="YYYY"}} 蜀ICP备18009417号-1</section>
<nav class="site-footer-nav">
<a href="https://ghost.org" target="_blank" rel="noopener">Ghost</a>
</nav>
</div>
</footer>
</div>
{{!-- The big email subscribe modal content --}}
{{#if @labs.subscribers}}
<div id="subscribe" class="subscribe-overlay">
<a class="subscribe-overlay-close" href="#"></a>
<div class="subscribe-overlay-content">
{{#if @blog.logo}}
<img class="subscribe-overlay-logo" src="{{@blog.logo}}" alt="{{@blog.title}}" />
{{/if}}
<h1 class="subscribe-overlay-title">订阅{{@blog.title}}</h1>
<p class="subscribe-overlay-description">将所有最新的文章发送到您的收件箱</p>
{{subscribe_form placeholder="youremail@example.com"}}
</div>
</div>
{{/if}}
{{!-- editor support --}}
<script src="https://cdn.staticfile.org/ace/1.3.3/ace.js"></script>
{{!-- jQuery + Fitvids, which makes all video embeds responsive --}}
<script
src="https://cdn.staticfile.org/jquery/3.3.1/jquery.min.js"
crossorigin="anonymous">
</script>
<script type="text/javascript" src="{{asset "js/jquery.fitvids.js"}}"></script>
{{#if pagination.pages}}
<script>
var maxPages = parseInt('{{pagination.pages}}');
</script>
<script src="{{asset "js/infinitescroll.js"}}"></script>
{{/if}}
{{!-- The #block helper will pull in data from the #contentFor other template files. In this case, there's some JavaScript which we only want to use in post.hbs, but it needs to be included down here, after jQuery has already loaded. --}}
{{{block "scripts"}}}
{{!-- Ghost outputs important scripts and data with this tag - it should always be the very last thing before the closing body tag --}}
{{ghost_foot}}
{{!-- code runnner support --}}
<script src="{{asset "js/coderunner.js"}}"></script>
{{!-- math support --}}
<script>
renderMathInElement(document.body, {
delimiters:
[
{ left: "$$", right: "$$", display: true },
{ left: "\\[", right: "\\]", display: false },
{ left: "$", right: "$", display: true },
{ left: "\\(", right: "\\)", display: false }
]
});
</script>
</body>
</html>