-
Notifications
You must be signed in to change notification settings - Fork 0
/
default.hbs
127 lines (114 loc) · 5.53 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
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
123
124
125
126
127
<!DOCTYPE html>
<html lang="{{@site.locale}}" class="nightwind">
<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 --}}
{{!-- -hightlightjs styles --}}
<link rel="stylesheet" type="text/css" href="/assets/css/inline.css?v=" inline>
<link rel="stylesheet" type="text/css"
href="//cdn.jsdelivr.net/gh/highlightjs/[email protected]/build/styles/tomorrow-night-bright.min.css" media="print"
onload="this.media='all';this.onload=null;">
<noscript>
<link rel="stylesheet"
href="//cdn.jsdelivr.net/gh/highlightjs/[email protected]/build/styles/tomorrow-night-bright.min.css">
</noscript>
{{!----}}
{{!-- This tag outputs SEO meta+structured data and other important settings --}}
{{ghost_head}}
<script>
window._sys = {
cover_image: "{{ @site.cover_image}}",
img_url: "{{asset '/img/'}}"
}
</script>
</head>
<body class="{{body_class}} bg-gray-50 dark:bg-gray-800 bg-fixed text-gray-900 dark:text-gray-100">
{{!-- This loads content --}}
<script src="/assets/js/afterload.inline.js?v=" inline></script>
{{> "site-nav" }}
<div class="afterload-placeholder">
<span class="loading"></span>
</div>
<div id="container" class="afterload md:w-5/6">
{{!-- All the main content gets inserted here, index.hbs, post.hbs, etc --}}
{{{body}}}
</div>
{{!-- The big email subscribe modal content --}}
{{#if @site.members_enabled}}
<div class="subscribe-notification subscribe-success-message afterload">
<a class="subscribe-close-button" href="javascript:;"></a>
You've successfully subscribed to {{@site.title}}!
</div>
<div class="subscribe-notification subscribe-failure-message afterload">
<a class="subscribe-close-button" href="javascript:;"></a>
Could not sign up! Invalid sign up link.
</div>
<div id="subscribe" class="subscribe-overlay afterload">
<a class="subscribe-close-overlay" href="#"></a>
<a class="subscribe-close-button" href="#"></a>
<div class="subscribe-overlay-content">
{{#if @site.logo}}
<img class="subscribe-overlay-logo" src="{{@site.logo}}" alt="{{@site.title}}" />
{{/if}}
<div class="subscribe-form">
<h1 class="subscribe-overlay-title">Subscribe to {{@site.title}}</h1>
<p class="subscribe-overlay-description">Stay up to date! Get all the latest & greatest posts delivered
straight to your inbox</p>
<form data-members-form="subscribe">
<div class="form-group">
<input class="subscribe-email" data-members-email placeholder="[email protected]"
autocomplete="false" />
<button class="button primary" type="submit">
<span class="button-content">Subscribe</span>
<span class="button-loader">{{> "icons/loader"}}</span>
</button>
</div>
<div class="message-success">
<strong>Great!</strong> Check your inbox and click the link to confirm your subscription.
</div>
<div class="message-error">
Please enter a valid email address!
</div>
</form>
</div>
</div>
</div>
{{/if}}
<section id="footer" class="bg-white dark:bg-gray-900 shadow-sm text-gray-500 text-center afterload">
<ul class="icons">
{{#if @site.twitter}}
<li><a href="{{@site.twitter}}" class="fa-twitter"><span class="label">Twitter</span></a></li>
{{/if}}
{{#if @site.facebook}}
<li><a href="{{@site.facebook}}" class="fa-facebook"><span class="label">Facebook</span></a></li>
{{/if}}
<li><a href="https://instagram.com/lss233_" class="fa-instagram"><span class="label">Instagram</span></a>
</li>
<li><a href="https://github.com/lss233" class="fa-github"><span class="label">Github</span></a></li>
<li><a href="{{@site.url}}/rss/" class="fa-rss"><span class="label">RSS</span></a></li>
</ul>
<p class="copyright">© {{@site.title}}. Design: <a href="https://lss233.com" target="_blank">Lss233</a>. Images: <a
href="https://unsplash.com">Unsplash</a>.</p>
</section>
<link rel="stylesheet" type="text/css" href="{{asset '/css/main.css'}}" media="print"
onload="this.media='all';_forceLoad()">
<noscript>
<link rel="stylesheet" href="{{asset '/css/main.css'}}" defer>
</noscript>
<script src="{{asset '/js/main.js'}}"></script>
<script src="/assets/js/imagepatch.inline.js" inline></script>
{{!-- 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}}
</body>
</html>