forked from godofredoninja/Paway
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.hbs
108 lines (88 loc) · 3.45 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
104
105
106
107
108
<!DOCTYPE html>
<!--
Design by:
——————————
GODO FREDO
✉ https://godofredo.ninja
✎ @GodoFredoNinja
✈ Lima - Perú
-->
<html lang="{{@site.lang}}">
<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" />
{{!-- fonts --}}
<link href="https://fonts.googleapis.com/css?family=Playfair+Display:400i,700,700i&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Lora:400,400i,700,700i&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="{{body_class}} {{#is "post, page"}}is-article{{/is}}">
{{!-- Site Header - partials/header.hbs --}}
{{> "header"}}
{{!-- Sidenav - partials/sidenav.hbs --}}
{{> "sidenav"}}
<div class="site-wrapper">
{{!-- All the main content gets inserted here, index.hbs, post.hbs, etc --}}
{{{body}}}
</div>
{{!-- Instagram Feed --}}
<div class="py-instagram js-instagram u-hide u-relative"></div>
{{!-- Search - partials/widget/widget-search.hbs--}}
{{> "widget/widget-search"}}
{{!-- Site Fotoer - partials/footer.hbs--}}
{{> "footer"}}
{{!-- 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--primary">OK</div>
</div>
{{/if}}
{{!-- icons --}}
{{> "icons/icons"}}
<script>
var siteUrl = '{{@site.url}}';
var siteSearch = '{{asset "scripts/search.js"}}';
</script>
{{!-- Ghost outputs important scripts and data with this tag --}}
{{ghost_foot}}
{{!-- Main Scripts --}}
<script src="{{asset "scripts/main.js"}}"></script>
{{#is "post, page"}}
<script src="{{asset "scripts/post.js"}}"></script>
{{/is}}
{{#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}}
{{!-- The #block helper will pull in data from the #contentFor other template files. --}}
{{{block "scripts"}}}
</body>
</html>