forked from peterzen/decred-ghost-theme
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdefault.factory.hbs
197 lines (179 loc) · 8.31 KB
/
default.factory.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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
<!DOCTYPE html>
<html>
<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'n'Scripts --}}
<link rel="stylesheet" type="text/css" href="{{asset "built/screen.css"}}" />
<meta content="Decred is an autonomous digital currency. With a hybrid consensus system, it is built to be a decentralized, sustainable, and self-ruling currency where stakeholders make the rules." name="description">
<meta content="Decred - Autonomous Digital Currency" property="og:title">
<meta content="Decred is an autonomous digital currency. With a hybrid consensus system, it is built to be a decentralized, sustainable, and self-ruling currency where stakeholders make the rules." property="og:description">
<meta content="https://decred.org/ogMainSite.jpg" property="og:image">
<meta content="summary" name="twitter:card">
<meta content="width=device-width, initial-scale=1" name="viewport">
<link href="{{asset "css/normalize.css"}}" rel="stylesheet" type="text/css">
<link href="{{asset "css/components.css"}}" rel="stylesheet" type="text/css">
<link href="{{asset "css/decred-v5.css"}}" rel="stylesheet" type="text/css">
<noscript>
<link href="{{asset "css/decred-v5-nojs-edition.css"}}" rel="stylesheet" type="text/css">
</noscript>
<!-- [if lt IE 9]><script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.min.js" type="text/javascript"></script><![endif] -->
<script type="text/javascript">
! function(o, c) {
var n = c.documentElement,
t = " w-mod-";
n.className += t + "js", ("ontouchstart" in o || o.DocumentTouch && c instanceof DocumentTouch) && (n.className += t + "touch")
}(window, document);
</script>
<link href="{{asset "images/32.png"}}" rel="shortcut icon" type="image/x-icon">
<link href="{{asset "images/256.png"}}" rel="apple-touch-icon">
<link href="{{asset "css/dataTables.css"}}" rel="stylesheet" type="text/css">
<!-- Custom favicon -->
<link rel="apple-touch-icon" sizes="180x180" href="{{asset "images/favicon/apple-touch-icon.png?v=fi5jKKtbwv"}}">
<link rel="icon" type="image/png" href="{{asset "images/favicon/favicon-32x32.png?v=fi5jKKtbwv" sizes="32x32"}}">
<link rel="icon" type="image/png" href="{{asset "images/favicon/favicon-16x16.png?v=fi5jKKtbwv" sizes="16x16"}}">
<link rel="manifest" href="{{asset "images/favicon/manifest.json?v=fi5jKKtbwv"}}">
<link rel="mask-icon" href="{{asset "images/favicon/safari-pinned-tab.svg?v=fi5jKKtbwv"}}" color="#2973ff">
<link rel="shortcut icon" href="{{asset "images/favicon/favicon.ico?v=fi5jKKtbwv"}}">
<meta name="apple-mobile-web-app-title" content="Decred - Autonomous Digital Currency">
<meta name="application-name" content="Decred - Autonomous Digital Currency">
<meta name="msapplication-TileColor" content="#2973ff">
<meta name="msapplication-TileImage" content="{{asset "images/favicon/mstile-144x144.png?v=fi5jKKtbwv"}}">
<meta name="msapplication-config" content="{{asset "images/favicon/browserconfig.xml?v=fi5jKKtbwv"}}">
<meta name="theme-color" content="#ffffff">
<style type="text/css">
.footerblockindicator {
word-break: break-all;
-ms-word-break: break-all;
-webkit-word-break: break-word;
hyphens: auto;
-webkit-hyphens: auto;
-moz-hyphens: auto;
}
.turquoise {
fill: #2ed8a3;
}
.hand {
cursor: pointer;
cursor: hand;
}
@media (min-width: 1024px) and (max-width: 1212px) {
.logo {
margin-left: -20px;
}
.slogan,
.description,
.download-wallet,
.all-downloads {
margin-left: 105px;
}
}
@media (min-width: 992px) and (max-width: 1024px) {
.front {
width: 480px;
}
.width1100 {
width: 100%;
padding-left: 60px;
padding-right: 60px;
}
/*footer*/
.footerrowscolumn1.footerblockstats,
.footerrowscolumn1.footerblockicon {
width: 20.666667%;
}
.networkstatistics {
width: 237px;
}
/*statistics*/
.statisticsminedbar.borderradius4.margin20 {
width: 100%;
}
.column.percentmined {
width: 100%;
}
.column.supplydistribution {
width: 397px;
}
.column.development {
margin-left: 23px;
padding-left: 27px;
}
}
.column {
margin-bottom: 20px;
}
</style>
<!-- Piwik -->
<script type="text/javascript">
var _paq = _paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//analytics.decred.org/";
_paq.push(['setTrackerUrl', u+'piwik.php']);
_paq.push(['setSiteId', '1']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<!-- End Piwik Code -->
{{!-- This tag outputs SEO meta+structured data and other important settings --}}
{{ghost_head}}
</head>
<body class="{{body_class}}">
<div class="site-wrapper">
{{!-- All the main content gets inserted here, index.hbs, post.hbs, etc --}}
{{{body}}}
{{!-- The footer at the very bottom of the screen --}}
<footer class="site-footer outer">
<div class="site-footer-content inner">
<section class="copyright"><a href="{{@blog.url}}">{{@blog.title}}</a> © {{date format="YYYY"}}</section>
<nav class="site-footer-nav">
<a href="{{@blog.url}}">Latest Posts</a>
{{#if @blog.facebook}}<a href="{{facebook_url @blog.facebook}}" target="_blank" rel="noopener">Facebook</a>{{/if}}
{{#if @blog.twitter}}<a href="{{twitter_url @blog.twitter}}" target="_blank" rel="noopener">Twitter</a>{{/if}}
<a href="https://ghost.org" target="_blank" rel="noopener">Ghost</a>
</nav>
</div>
</footer>
</div>
{{!-- The big email subscribe modal content --}}
{{#if @labs.subscribers}}
<div id="subscribe" class="subscribe-overlay">
<a class="subscribe-overlay-close" href="#"></a>
<div class="subscribe-overlay-content">
{{#if @blog.logo}}
<img class="subscribe-overlay-logo" src="{{@blog.logo}}" alt="{{@blog.title}}" />
{{/if}}
<h1 class="subscribe-overlay-title">Subscribe to {{@blog.title}}</h1>
<p class="subscribe-overlay-description">Stay up to date! Get all the latest & greatest posts delivered straight to your inbox</p>
{{subscribe_form placeholder="[email protected]"}}
</div>
</div>
{{/if}}
{{!-- jQuery + Fitvids, which makes all video embeds responsive --}}
<script
src="https://code.jquery.com/jquery-3.2.1.min.js"
integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4="
crossorigin="anonymous">
</script>
<script type="text/javascript" src="{{asset "js/jquery.fitvids.js"}}"></script>
{{#if pagination.pages}}
<script>
var maxPages = parseInt('{{pagination.pages}}');
</script>
<script src="{{asset "js/infinitescroll.js"}}"></script>
{{/if}}
{{!-- 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>