-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy pathdefault.hbs
More file actions
153 lines (138 loc) · 6.65 KB
/
Copy pathdefault.hbs
File metadata and controls
153 lines (138 loc) · 6.65 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
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
<!DOCTYPE html>
<html lang="{{@site.locale}}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
{{^is "blog"}}
<title>{{meta_title page=(t " (Page %)")}}</title>
{{else}}
<title>{{block "title"}}</title>
{{{block "description"}}}
{{/is}}
<link rel="stylesheet" href="{{asset "built/screen.css"}}">
{{ghost_head}}
</head>
<body class="{{body_class}}{{{block "body_class"}}} is-head-{{#match @custom.navigation_layout "Logo on the left"}}left-logo{{else match @custom.navigation_layout "Logo in the middle"}}middle-logo{{else}}stacked{{/match}}{{#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 gh-inner">
<div class="gh-head-brand">
<div class="gh-head-brand-wrapper">
<a class="gh-head-logo" href="{{@site.url}}">
{{#if @site.logo}}
<img src="{{@site.logo}}" alt="{{@site.title}}">
{{else}}
{{@site.title}}
{{/if}}
</a>
</div>
<button class="gh-search gh-icon-btn" aria-label="{{t "Search this site"}}" data-ghost-search>{{> "icons/search"}}</button>
<button class="gh-burger" aria-label="{{t "Toggle menu"}}"></button>
</div>
<nav class="gh-head-menu">
{{navigation}}
{{#unless @site.members_enabled}}
{{#match @custom.navigation_layout "Stacked"}}
<button class="gh-search gh-icon-btn" aria-label="{{t "Search this site"}}" data-ghost-search>{{> "icons/search"}}</button>
{{/match}}
{{/unless}}
</nav>
<div class="gh-head-actions">
{{#unless @site.members_enabled}}
{{^match @custom.navigation_layout "Stacked"}}
<button class="gh-search gh-icon-btn" aria-label="{{t "Search this site"}}" data-ghost-search>{{> "icons/search"}}</button>
{{/match}}
{{else}}
<button class="gh-search gh-icon-btn" aria-label="{{t "Search this site"}}" data-ghost-search>{{> "icons/search"}}</button>
<div class="gh-head-members">
{{#unless @member}}
{{#unless @site.members_invite_only}}
<a class="gh-head-link" href="#/portal/signin" data-portal="signin">{{t "Sign in"}}</a>
<a class="gh-head-btn gh-btn gh-primary-btn" href="#/portal/signup" data-portal="signup">{{t "Subscribe"}}</a>
{{else}}
<a class="gh-head-btn gh-btn gh-primary-btn" href="#/portal/signin" data-portal="signin">{{t "Sign in"}}</a>
{{/unless}}
{{else}}
<a class="gh-head-btn gh-btn gh-primary-btn" href="#/portal/account" data-portal="account">{{t "Account"}}</a>
{{/unless}}
</div>
{{/unless}}
</div>
</div>
</header>
{{#is "home"}}
{{#if @site.cover_image}}
<div class="site-cover u-overlay">
<img class="cover-image u-object-fit" src="{{img_url @site.cover_image}}" alt="{{@site.title}}">
<div class="cover-content">
{{#if @site.logo}}
<img class="cover-logo" src="{{@site.logo}}" alt="{{@site.title}}">
{{/if}}
{{#if @site.description}}
<div class="cover-description">{{@site.description}}</div>
{{/if}}
</div>
</div>
{{/if}}
{{/is}}
<div class="site-content">
{{{body}}}
</div>
<footer class="gh-foot gh-outer">
<div class="gh-foot-inner gh-inner">
<div class="subscribe{{#if is_popup}} popup{{/if}}">
{{#if @custom.apple_podcasts_link}}
<a href="{{@custom.apple_podcasts_link}}" class="subscribe-link" target="_blank" rel="noopener noreferrer">
{{> "icons/apple"}}
<span class="subscribe-text">Apple</span>
</a>
{{/if}}
{{#if @custom.spotify_link}}
<a href="{{@custom.spotify_link}}" class="subscribe-link" target="_blank" rel="noopener noreferrer">
{{> "icons/spotify"}}
<span class="subscribe-text">Spotify</span>
</a>
{{/if}}
{{#if @custom.youtube_music_link}}
<a href="{{@custom.youtube_music_link}}" class="subscribe-link" target="_blank" rel="noopener noreferrer">
{{> "icons/youtube-music"}}
<span class="subscribe-text">YouTube Music</span>
</a>
{{/if}}
<a href="{{#if @custom.rss_link}}{{@custom.rss_link}}{{else}}{{@site.url}}/rss{{/if}}" class="subscribe-link rss" target="_blank" rel="noopener noreferrer">
{{> "icons/rss"}}
<span class="subscribe-text">RSS</span>
</a>
</div>
<nav class="gh-foot-menu">
{{navigation type="secondary"}}
</nav>
<div class="gh-social-links">
{{#social_accounts @site}}
<a href="{{href}}" target="_blank" rel="noopener" aria-label="{{name}}">
{{#> (concat "icons/" type)}}
{{!-- Fallback when no per-platform icon partial exists --}}
<span>{{name}}</span>
{{/undefined}}
</a>
{{/social_accounts}}
</div>
<div class="gh-copyright">
{{@site.title}} © {{date format="YYYY"}}. {{{t "Powered by {ghostlink}" ghostlink="<a href=\"https://ghost.org/\" target=\"_blank\" rel=\"noopener\">Ghost</a>"}}}
</div>
</div>
</footer>
{{^is "post, page"}}
{{> "player"}}
{{/is}}
</div>
<script
src="https://code.jquery.com/jquery-3.3.1.min.js"
integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
crossorigin="anonymous">
</script>
<script src="{{asset "built/main.min.js"}}"></script>
{{{block "scripts"}}}
{{ghost_foot}}
</body>
</html>