This repository has been archived by the owner on Jan 31, 2021. It is now read-only.
forked from TryGhost/Casper
-
Notifications
You must be signed in to change notification settings - Fork 76
/
Copy pathdefault.hbs
113 lines (90 loc) · 4.18 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="{{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" />
{{!-- Styles'n'Scripts --}}
<link rel="stylesheet" type="text/css" href="{{asset "built/staypuft.css"}}" />
{{!-- Fonts --}}
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
{{!-- Font Awesome --}}
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.10/css/all.css" integrity="sha384-+d0P83n9kaQMCwj8F4RJB66tzIwOKmrdb46+porD/OvrJ+37WqIM7UoBtwHO6Nlg" crossorigin="anonymous">
{{!-- Prism --}}
<link rel="stylesheet" type="text/css" href="{{asset "css/prism.css"}}" />
{{!-- This tag outputs SEO meta+structured data and other important settings --}}
{{ghost_head}}
</head>
<body class="{{body_class}}">
<div class="site-wrapper">
{{!-- Sidebar (Landscape) / Header (Portrait) --}}
<div id="sidebar" {{#if @blog.cover_image}}style="background-image: url({{@blog.cover_image}})"{{/if}}>
<div>
{{!-- Header --}}
{{> "site-header"}}
</div>
<div class="search-form">
<div class="search-form-content">
{{> "search-form"}}
</div>
</div>
<nav class="main-nav">
{{#if @blog.navigation}}
{{navigation}}
{{/if}}
</nav>
<div class="landscape">
{{!-- Footer (Landscape mode only)--}}
{{> "site-footer" }}
</div>
</div>
{{!-- All the main content gets inserted here, index.hbs, post.hbs, etc --}}
<main id="site-main" class="site-main outer">
<div class="inner">
<div class="search-results">
{{> "search-results"}}
</div>
<div class="main-body">
{{{body}}}
</div>
</div>
</main>
{{!-- Footer (Portrait mode only) --}}
<div class="portrait">
{{> "site-footer" }}
</div>
</div>
{{> "subscribe-overlay"}}
<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>
{{!-- jQuery + Fitvids, which makes all video embeds responsive --}}
<script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<script type="text/javascript" src="{{asset "built/jquery.fitvids.js"}}"></script>
{{!-- ghostHunter --}}
<script type="text/javascript" src="{{asset "js/jquery.ghosthunter.min.js"}}"></script>
<script type="text/javascript" src="{{asset "js/jquery.ghosthunter-staypuft.js"}}"></script>
{{!-- Prism --}}
<script type="text/javascript" src="{{asset "js/prism/prism-preprocessor.js"}}"></script>
<script type="text/javascript" src="{{asset "js/prism/prism.js"}}"></script>
<script type="text/javascript">Prism.plugins.autoloader.languages_path = "{{@site.url}}/assets/js/prism/components/";</script>
{{#if pagination.pages}}
<script src="{{asset "built/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>