-
Notifications
You must be signed in to change notification settings - Fork 0
/
default.hbs
114 lines (102 loc) · 3.23 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
<!DOCTYPE html>
<html>
<head>
{{!-- Document Settings --}}
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
{{!-- Page Meta --}}
<title>{{meta_title}}</title>
{{ghost_head}}
{{!-- Mobile Meta --}}
<meta name="HandheldFriendly" content="True">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
{{!-- Brand icon --}}
<link rel="shortcut icon" href="{{asset "favicon.ico"}}">
<link rel="mask-icon" href="{{asset "images/mask-icon.svg"}}" color="#4bb6f6">
<meta name="theme-color" content="#4bb6f6">
{{!-- Styles'n'Scripts --}}
{{!-- Base styles --}}
<link rel="stylesheet" href="{{asset "css/style.css"}}">
{{!-- Roboto Slab --}}
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Fira+Mono&family=Roboto+Slab:wght@400;700&display=swap">
{{!-- Gallery --}}
<script src="{{asset "js/gallery-card.js"}}" defer></script>
{{!-- Syntax highlighting --}}
<link rel="stylesheet" href="{{asset "js/highlight/styles/solarized-light.min.css"}}">
<script src="{{asset "js/highlight/highlight.min.js"}}" defer></script>
<script src="{{asset "js/syntax.js"}}" defer></script>
{{!-- Improved mailto links --}}
<script src="{{asset "js/mailgo.min.js"}}" defer></script>
{{!-- Math --}}
{{#contentFor "scripts-math"}}
<link rel="stylesheet" href="{{asset "js/katex/katex.min.css"}}">
<script src="{{asset "js/katex/katex.min.js"}}" defer></script>
<script src="{{asset "js/katex/contrib/auto-render.min.js"}}" defer></script>
<script src="{{asset "js/math.js"}}" defer></script>
{{/contentFor}}
{{#is "index, tag, author"}}
{{{block "scripts-math"}}}
{{/is}}
{{#post}}
{{#has tag="#uses-math"}}
{{{block "scripts-math"}}}
{{/has}}
{{/post}}
{{#page}}
{{#has tag="#uses-math"}}
{{{block "scripts-math"}}}
{{/has}}
{{/page}}
</head>
<body class="{{body_class}}{{block "errorpage"}}">
{{!-- Theme --}}
<script src="{{asset "js/theme-toggle.js"}}"></script>
{{!-- IE disclaimer --}}
<!--[if lte IE 10]>
<div class="incompatible" style="font-size: 20px; color: #e00; padding: 40px">
You are using a terrible web browser. Things may look wonky. Please upgrade to a better browser.
</div>
<script src="assets/REM-unit-polyfill/js/rem.min.js" type="text/javascript"></script>
<![endif]-->
{{!-- The blog navigation links --}}
<nav class="navigation">
<div class="brand">
{{#if @site.logo}}
<a href="{{@site.url}}"><img class="logo" src="{{@site.logo}}" alt="{{@site.title}}" height="48" /></a>
{{else}}
{{@site.title}}
{{/if}}
</div>
{{navigation}}
</nav>
<main>
{{!-- All the main content gets inserted here, index.hbs, post.hbs, etc --}}
{{{body}}}
</main>
{{!-- The blog footer --}}
<footer class="footer">
<div class="footer-flex">
<div class="footer-left">
<div class="group">
<div class="brand">
<span class="name">{{@site.title}}</span>
</div>
</div>
<div class="group">
{{navigation type="secondary"}}
</div>
<div class="group">
{{> navigation-social}}
</div>
</div>
<div class="footer-right">
<div class="group">
{{> theme-toggle}}
</div>
</div>
</div>
</footer>
{{!-- Ghost outputs important scripts and data with this tag --}}
{{ghost_foot}}
</body>
</html>