/
default.hbs
113 lines (97 loc) · 4.71 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
109
110
111
112
113
<!DOCTYPE html>
<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" />
{{!-- Vendor Scripts by Gulp --}}
<link rel="stylesheet" type="text/css" href="{{asset "css/build.css"}}" />
<link rel="stylesheet" type="text/css" href="{{asset "fonts/fontawesome-free/css/all.css"}}" />
{{!-- Styles'n'Scripts --}}
<link rel="stylesheet" type="text/css" href="{{asset "css/screen.css"}}" />
{{!-- This tag outputs SEO meta+structured data and other important settings --}}
{{ghost_head}}
</head>
<body class="{{body_class}}">
<div class="preloader"></div>
{{!-- All the main content gets inserted here, index.hbs, post.hbs, etc --}}
{{{body}}}
{{!-- The footer at the very bottom of the screen --}}
<footer class="bg-dark navbar-fixed-bottom text-white py-3">
<div class="container">
<div class="row">
<div class="col-sm">
<ul class="nav">
<li class="nav-item">
<a class="nav-link" href="{{@site.url}}">{{@site.title}} © {{date format="YYYY"}}</a>
</li>
</ul>
</div>
<div class="col-sm">
<ul class="nav justify-content-end">
<li class="nav-item">
<a class="nav-link" href="{{@site.url}}">Latest Posts</a>
</li>
{{#if @site.facebook}}
<li class="nav-item">
<a class="nav-link" href="{{facebook_url @site.facebook}}" target="_blank" rel="noopener">Facebook</a>
</li>
{{/if}}
{{#if @site.twitter}}
<li class="nav-item">
<a class="nav-link" href="{{twitter_url @site.twitter}}" target="_blank" rel="noopener">Twitter</a>
</li>
{{/if}}
<li class="nav-item">
<a class="nav-link" href="https://ghost.org" target="_blank" rel="noopener">Ghost</a>
</li>
</ul>
</div>
</div>
</div>
</footer>
{{!-- The big email subscribe modal content --}}
{{#if @labs.subscribers}}
<div id="subscribe" class="modal fade">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-body p-4">
{{#if @site.logo}}
<img class="mx-auto" src="{{@site.logo}}" alt="{{@site.title}}" />
{{else}}
<span class="navbar-brand">{{@site.title}}</span>
{{/if}}
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
<h1>Subscribe to {{@site.title}}</h1>
<p>Stay up to date! Get all the latest & greatest posts delivered straight to your inbox</p>
{{subscribe_form input_class="form-control" button_class="btn btn-primary btn-lg my-2" placeholder="youremail@example.com"}}
</div>
</div>
</div>
</div>
{{/if}}
<script>
var images = document.querySelectorAll('.kg-gallery-image img');
images.forEach(function (image) {
var container = image.closest('.kg-gallery-image');
var width = image.attributes.width.value;
var height = image.attributes.height.value;
var ratio = width / height;
container.style.flex = ratio + ' 1 0%';
})
</script>
{{!-- vendor scripts via gulp --}}
<script type="text/javascript" src="{{asset "js/build.min.js"}}"></script>
<script type="text/javascript" src="{{asset "js/main.js"}}"></script>
{{!-- 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>