-
Notifications
You must be signed in to change notification settings - Fork 11
/
default.hbs
61 lines (49 loc) · 2.38 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
<!DOCTYPE html>
<html {{#is "amp"}}⚡{{/is}}>
<head>
<title>{{meta_title}}</title>
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1">
<meta charset=utf-8>
{{#is "amp"}}
{{amp_components}}
{{amp_ghost_head}}
{{>compiled/amp_style}}
<style amp-boilerplate>body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}</style><noscript><style amp-boilerplate>body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}</style></noscript>
<script async src="https://cdn.ampproject.org/v0.js"></script>
<script async custom-element="amp-social-share" src="https://cdn.ampproject.org/v0/amp-social-share-0.1.js"></script>
<script async custom-element="amp-analytics" src="https://cdn.ampproject.org/v0/amp-analytics-0.1.js"></script>
{{else}}
<style>
{{#is "tag, index"}}
.full-background-image {
background: linear-gradient(
to left,
rgba(0, 0, 0, 0.75),
rgba(0, 0, 0, 0)),
url(
{{#is "tag"}}{{#tag}}{{#if feature_image}}{{img_url feature_image}}{{else}}{{@blog.cover_image}}{{/if}}{{/tag}}{{/is}}{{#is "index"}}{{@blog.cover_image}}{{/is}}
)
center/cover no-repeat;
}
{{/is}}
</style>
{{>css_include}}
<script>window.__themeCfg = {};</script>
{{>js_include}}
{{>highlight}}
{{ghost_head}}
{{/is}}
</head>
<body class="{{body_class}} {{#is "amp"}}amp{{/is}}">
<div class="layout">
<div class="sidebar-wrapper">{{>sidebar}}</div>
<div class="content-wrapper full-background-image">
{{{body}}}
{{>theme_attribution}}
</div>
</div>
{{#is "amp"}}{{else}}{{>detect_layout}}{{/is}}
{{#is "amp"}}{{else}}{{>google_analytics}}{{/is}}
{{ghost_foot}}
</body>
</html>