forked from TryGhost/London
-
Notifications
You must be signed in to change notification settings - Fork 0
/
default.hbs
173 lines (153 loc) · 8.7 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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
<!DOCTYPE html>
<html lang="{{@site.locale}}" class="theme-default">
<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" />
{{!-- Fonts --}}
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
{{!-- Mulish --}}
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Mulish:ital,wght@0,400&display=swap" media="all" />
{{!-- Venera --}}
<link rel="preload" as="font" type="font/woff2" href="{{asset "fonts/venera/Venera700.woff2"}}" />
{{!-- Styles'n'Scripts --}}
<link rel="stylesheet" href="{{asset "built/critical.css"}}" type="text/css" />
<link rel="stylesheet" href="{{asset "built/screen.css"}}" type="text/css" media="all"/>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Mulish:ital,wght@0,600;0,700;0,800;1,400;1,700&display=swap" media="print" onload="this.media='all'"/>
{{!-- This tag outputs SEO meta+structured data and other important settings --}}
{{ghost_head}}
</head>
<body class="{{body_class}}{{#match @custom.title_font "=" "Elegant serif"}} has-serif-title{{/match}}{{#match @custom.body_font "=" "Elegant serif"}} has-serif-body{{/match}}">
<div class="site-wrapper">
<header class="site-head">
<div class="container">
<a class="nav-burger" href="#">
<div class="hamburger hamburger--collapse" aria-label="Menu" role="button" aria-controls="navigation">
<div class="box">
<div class="inner"></div>
</div>
</div>
</a>
<nav id="swup" class="site-head-left">
{{navigation}}
</nav>
<div class="site-head-center">
<a class="logo" href="{{@site.url}}">
<picture>
<source
media="(prefers-color-scheme: dark)"
sizes="(max-width: 3000px) 40vw, 1200px"
srcset="
https://images.matthewrasnake.com/[email protected] 300w,
https://images.matthewrasnake.com/logo_MatthewRasnake-Author_light.png 600w" />
<img class="light"
sizes="(max-width: 3000px) 40vw, 1200px"
srcset="
https://images.matthewrasnake.com/[email protected] 300w,
https://images.matthewrasnake.com/logo_MatthewRasnake-Author.png 600w"
src="https://images.matthewrasnake.com/logo_MatthewRasnake-Author.png"
alt="{{@site.title}}" />
<img class="dark"
sizes="(max-width: 3000px) 40vw, 1200px"
srcset="
https://images.matthewrasnake.com/[email protected] 300w,
https://images.matthewrasnake.com/logo_MatthewRasnake-Author_light.png 600w"
src="https://images.matthewrasnake.com/logo_MatthewRasnake-Author_light.png"
alt="{{@site.title}}" />
</picture>
</a>
</div>
<div class="site-head-right">
<div class="member-links">
{{#if @member}}
{{#if @member.firstname}}
<span>Welcome, {{@member.firstname}}</span>
{{/if}}
<a href="/account/">Manage Account</a>
{{#unless @member.paid}}
<a href="/join/">Become a Patron</a>
{{/unless}}
{{else}}
<a href="/signin/">Sign In</a>
<a href="/join/">Become a Patron</a>
{{/if}}
</div>
</div>
<div class="theme-selector" title="Select Dark/Light Mode">
{{> "icons/mode-dark"}}
{{> "icons/mode-light"}}
<span class="switch"> </span>
</div>
</div>
</header>
<main id="site-main" class="site-main">
<div id="swup" class="transition-fade">
{{!-- All the main content gets inserted here, index.hbs, post.hbs, etc --}}
{{{body}}}
</div>
</main>
<footer class="site-foot">
<div class="container">
<div class="site-foot-left">{{navigation type="secondary"}}</div>
<div class="site-foot-center">
<div>© {{date format="YYYY"}} <a href="{{@site.url}}">Matthew Rasnake</a></div>
</div>
<div class="site-foot-right">
<ul class="nav">
<li><a href="https://matthewrasnake.com/facebook" title="Facebook" target="_blank" rel="noopener">Facebook</a></li>
{{#if @site.twitter}}
<li><a href="{{twitter_url @site.twitter}}" title="Twitter" target="_blank" rel="noopener">Twitter</a></li>
{{/if}}
<li><a href="https://matthewrasnake.com/instagram" title="Instagram" target="_blank" rel="noopener">Instagram</a></li>
<li><a href="{{@site.url}}/rss/" title="RSS" target="_blank" rel="noopener">RSS</a></li>
</ul>
</div>
</div>
</footer>
<footer class="site-foot">
<div class="container">
<div class="site-foot-left"></div>
<div class="site-foot-center"><a href="https://allianceindependentauthors.org/?affid=10030"><img src="https://allianceindependentauthors.org/members/banners/ALLi-Author-Member-Badge.png" width="109" height="185" alt="Alliance of Independent Authors" /></a></div>
<div class="site-foot-right"></div>
</div>
</footer>
{{{block "footer"}}}
</div>
<div class="modal-wrapper">
<div class="modal">
<i class="close" onClick="closeModal()">{{> "icons/close"}}</i>
<h5 class="modal-title"></h5>
<div class="modal-content"></div>
</div>
</div>
<script src='{{asset "built/jquery.js"}}' data-swup-reload-script></script>
<!-- script defer src='{{asset "built/swup.js"}}' data-swup-ignore-script></script -->
<script defer src='{{asset "built/infinite-scroll.js"}}' data-swup-ignore-script></script>
<script defer src='{{asset "built/lazysizes.js"}}' data-swup-reload-script></script>
<script defer src="{{asset "built/reframe.min.js"}}" data-swup-ignore-script></script>
<div id="swup">
{{{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}}
</div>
<script defer src="{{asset "built/site.js"}}" data-swup-ignore-script></script>
{{#is "post, page"}}
<script>
const sources = [
'.gh-content iframe[src*="youtube.com"]',
'.gh-content iframe[src*="youtube-nocookie.com"]',
'.gh-content iframe[src*="player.vimeo.com"]',
'.gh-content iframe[src*="kickstarter.com"][src*="video.html"]',
'object',
'embed',
];
reframe(document.querySelectorAll(sources.join(',')));
</script>
{{/is}}
</body>
</html>