forked from TryGhost/Alto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
default.hbs
103 lines (85 loc) · 3.59 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
<!DOCTYPE html>
<html lang="{{@site.locale}}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{meta_title}}</title>
<link rel="stylesheet" href="{{asset "built/screen.css"}}">
<script>
if (localStorage.getItem('alto_dark') == 'true') {
document.documentElement.classList.add('dark-mode');
}
</script>
{{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">
<header id="gh-head" class="gh-head gh-outer">
<div class="gh-head-inner">
<div class="gh-head-brand">
<div class="gh-head-brand-wrapper">
<div class="gh-head-logo">
<video playsinline autoplay muted id="video" src="{{asset "media/brand.mp4"}}"></video>
<canvas id="canvas"></canvas>
<noscript>
<a href="{{@site.url}}">{{@site.title}}</a>
</noscript>
</div>
</div>
<button class="gh-search gh-icon-btn" data-ghost-search>{{> "icons/search"}}</button>
<button class="gh-burger"></button>
</div>
<nav class="gh-head-menu">
{{navigation}}
</nav>
<div class="gh-head-actions">
<button class="gh-search gh-icon-btn" data-ghost-search>{{> "icons/search"}}</button>
<div class="toggle-track">
<div class="toggle-moon">{{> "icons/moon"}}</div>
<div class="toggle-sun">{{> "icons/sun"}}</div>
<div class="toggle-thumb"></div>
</div>
</div>
</div>
</header>
{{#is "home"}}
{{#if @site.description}}
<div class="gh-canvas">
<div class="headline kg-width-wide">
<h1 class="post-title balance-text">{{@site.description}}</h1>
</div>
</div>
{{/if}}
{{/is}}
<div class="site-content">
{{{body}}}
</div>
<footer class="gh-foot gh-outer">
<div class="footer-inner gh-inner">
<div class="gh-copyright">
© {{date format="YYYY"}} <a href="{{@site.url}}">{{@site.title}}</a> · Everything is a remix.
</div>
<nav class="social-links">
<a target="_blank" rel="noopener" href="https://twitter.com/NathanG">{{> "icons/twitter"}}</a>
<a target="_blank" rel="noopener" href="https://xoxo.zone/@nathan">{{> "icons/mastodon"}}</a>
<a target="_blank" rel="noopener" href="https://instagram.com/NathanGathright">{{> "icons/instagram"}}</a>
<a target="_blank" rel="noopener" href="https://linkedin.com/in/NathanGathright">{{> "icons/linkedin"}}</a>
<a target="_blank" rel="noopener" href="https://dribbble.com/NathanG">{{> "icons/dribbble"}}</a>
<a target="_blank" rel="noopener" href="https://github.com/NathanGathright">{{> "icons/github"}}</a>
<a target="_blank" rel="noopener" href="{{@site.url}}/rss/" title="RSS" rel="noopener">{{> "icons/rss"}}</a>
</nav>
</div>
</footer>
</div>
{{#is "post, page"}}
{{> "pswp"}}
{{/is}}
<script
src="https://code.jquery.com/jquery-3.5.1.min.js"
integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0="
crossorigin="anonymous">
</script>
<script src="{{asset "built/main.min.js"}}"></script>
{{ghost_foot}}
</body>
</html>