-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdefault.hbs
102 lines (85 loc) · 3.55 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
<!DOCTYPE html>
<!--
Design by:
——————————
GODO FREDO
✉ https://godofredo.ninja
✎ @GodoFredoNinja
✈ Lima - Perú
-->
<html lang="{{@site.lang}}" data-theme="dark">
<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 --}}
<link href="https://fonts.googleapis.com/css?family=Rubik:400,500,700&display=swap" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="{{asset "styles/main.css"}}"/>
{{!-- <style>{{> "styles"}}</style> --}}
{{!-- This tag outputs SEO meta+structured data and other important settings --}}
{{ghost_head}}
</head>
<body class="{{block "special_body_class"}}">
<div class="rimay">
{{!-- Header --}}
{{> "header"}}
<div class="rimay-main-content"> {{{body}}} </div>
{{!-- Footer --}}
{{> "footer"}}
{{!-- {{> "footer-two"}} --}}
</div>
{{!-- Search - partials/widget/search.hbs --}}
{{> "widget/search"}}
{{!-- Icons --}}
{{> "icons/all-icon"}}
{{!-- notification Subscribe --}}
{{#if @labs.members}}
<div class="subscribe-success-message u-flexCenter">
<span class="u-fontSize22" style="margin-right:10px">🎉</span> {{t "You've successfully subscribed to"}} {{@site.title}}!
<div class="notification-close button button--black">OK</div>
</div>
{{/if}}
{{!-- Variables --}}
<script>
var siteUrl = '{{@site.url}}';
var siteSearch = '{{asset "scripts/search.js"}}';
var prismJs = '{{asset "scripts/prismjs.js"}}';
var prismJsComponents = 'https://cdnjs.cloudflare.com/ajax/libs/prism/1.19.0/components/';
</script>
{{!-- Ghost outputs important scripts and data with this tag - it should always be the very last thing before the closing body tag --}}
{{ghost_foot}}
{{!-- The main JavaScript --}}
<script src="{{asset "scripts/main.js"}}" async defer></script>
{{#if @labs.members}}
<script>
// Parse the URL parameter
function getParameterByName(name, url) {
if (!url) url = window.location.href;
name = name.replace(/[\[\]]/g, "\\$&");
var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)"),
results = regex.exec(url);
if (!results) return null;
if (!results[2]) return '';
return decodeURIComponent(results[2].replace(/\+/g, " "));
}
// Give the parameter a variable name
var action = getParameterByName('action');
function ready() {
if (action == 'subscribe') { document.body.classList.add('subscribe-success'); }
document.querySelector('.notification-close').addEventListener('click', function() {
this.parentNode.classList.add('close');
});
}
window.addEventListener('load', ready, false);
</script>
{{/if}}
{{!-- Pagination --}}
{{#if pagination.pages}}<script src="{{asset "scripts/pagination.js"}}" async defer></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"}}}
</body>
</html>