-
-
Notifications
You must be signed in to change notification settings - Fork 68
/
Copy pathdefault.hbs
115 lines (95 loc) · 4.29 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
114
115
<!DOCTYPE html>
<html lang="{{@site.locale}}" class="has-spaced-navbar-fixed-top">
<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, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes" />
{{!-- This tag outputs SEO meta + structured data and Code injections in Site Header--}}
{{ghost_head}}
{{!-- main css --}}
<link rel="stylesheet" type="text/css" href="{{asset 'css/main.css'}}" />
{{!-- Google Fonts--}}
<link href="https://fonts.googleapis.com/css?family=Montserrat:400,600,700&display=swap" rel="stylesheet">
{{!-- Google Fonts Localized --}}
{{!-- <link rel="stylesheet" type="text/css" href="{{asset 'css/font.css'}}" /> --}}
{{!-- Bulma v0.7.5 --}}
<link href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.9.4/css/bulma.min.css" rel="stylesheet">
{{!-- <link href="https://cdn.bootcss.com/bulma/0.7.5/css/bulma.min.css" rel="stylesheet"> --}}
{{!-- KaTeX: css --}}
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css" integrity="sha384-yFRtMMDnQtDRO8rLpMIKrtPCD5jdktao2TV19YiZYWMDkUR5GQZR/NOVTdquEx1j" crossorigin="anonymous">
{{!-- Prismjs: css--}}
<link rel="stylesheet" type="text/css" href="{{asset "css/prism.css"}}" />
</head>
<body class="has-background-light-line">
{{!-- header --}}
{{> header}}
{{!-- body --}}
{{{body}}}
{{!-- foot --}}
{{> footer}}
{{!-- ghost-search --}}
<script src="https://unpkg.com/@tryghost/[email protected]/umd/content-api.min.js"></script>
<script type="text/javascript" src="{{asset "js/ghost-search.min.js"}}"></script>
<script type="text/javascript">
let ghostSearch = new GhostSearch({
key: search_key, // set var search_key in Site Header
host: search_url, // set var search_url in Site Header
input: '#search-input',
results: '#search-results',
options: {
limit: 10
},
template: function(result) {
let url = [location.protocol, '//', location.host].join('');
return '<a class="navbar-item" href="' + url + '/' + result.slug + '/">' + result.title + '</a>';
},
on: {
afterDisplay: function(results){
if (results.total == 0 && document.getElementById('search-input').value != '') {
let resultsElement = document.getElementById('search-results');
let e = document.createElement('p');
e.innerHTML = "<a class='navbar-item'>{{t 'No results'}}</a>";
resultsElement.appendChild(e.firstChild);
};
}
}
})
</script>
{{!-- This tag outputs Code injections in Site Footer--}}
{{ghost_foot}}
{{!-- gallery popup --}}
<script src="{{asset 'js/popup.min.js'}}"></script>
{{!-- jquery: for carousel + prismjs --}}
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
{{!-- import js --}}
<script src="{{asset 'js/main.js'}}"></script>
{{!-- carousel: js --}}
<script src="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.9.0/slick.min.js"></script>
<script>
$(document).ready(function(){
$('#carousel-home').slick({
autoplay: true,
infinite: true,
slidesToShow: 1,
slidesToScroll: 1,
arrows:false,
dots: false,
centerMode: false,
focusOnSelect: false
});
});
</script>
{{!-- switches: showcase & support_fizzy --}}
<script>
if (typeof show_showcase == 'undefined') {var show_showcase = false;};
if (show_showcase){$('#showcase').removeClass("is-hidden");};
if (typeof fizzy_credit == 'undefined') {var fizzy_credit = true;};
if (fizzy_credit){$('#fizzy-credit').removeClass("is-hidden");};
</script>
</body>
</html>