-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdefault.hbs
81 lines (60 loc) · 2.63 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
<!DOCTYPE html>
<html lang="{{@site.locale}}">
<head>
{{!-- Basic meta - advanced meta is output with {{ghost_head}} below --}}
<title>{{meta_title}}</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
{{!-- load critical css --}}
{{> "components/inline-css"}}
{{!-- Preload main styles and scripts for better performance --}}
<link rel="preload" as="script" href="{{asset "built/source.js"}}">
{{!-- Preload @site.logo (deactivated as long preload doesen't support <picture> sources in different formats --}}
{{#if @site.logo}}
{{!-- <link rel="preload" as="image" href="{{img_url @site.logo size="s"}}" imagesrcset="{{img_url @site.logo size="xs"}} 1x, {{img_url @site.logo size="s"}} 2x"> --}}
{{/if}}
{{!-- defer loading of uncritical css --}}
<link rel="preload" as="style" href="{{asset "built/screen.css"}}" onload="this.onload=null;this.rel='stylesheet'">
<noscript>
<link rel="stylesheet" type="text/css" href="{{asset "built/screen.css"}}">
</noscript>
{{!-- print css --}}
<link rel="stylesheet" type="text/css" media="print" href="{{asset "built/print.css"}}">
{{!-- This tag outputs all your advanced SEO meta, structured data, and other important settings, it should always be the last tag before the closing head tag --}}
{{#is "post"}}
{{!-- Load comments helper scripts only for posts --}}
{{ghost_head}}
{{else}}
{{ghost_head exclude="comment_counts"}}
{{/is}}
{{> "components/inline-js"}}
</head>
<body class="{{body_class}} has-sans-title has-sans-body has-dark-text">
<div class="gh-viewport">
{{> "components/navigation" [email protected]_layout}}
{{{body}}}
{{> "components/footer"}}
</div>
{{#is "post, page"}}
{{> "lightbox"}}
{{/is}}
{{!-- Scripts - handle responsive videos, infinite scroll, and navigation dropdowns --}}
<script src="{{asset "built/source.js"}}"></script>
{{!-- generate custom logo --}}
{{^if @site.logo}}
{{!-- Include JS for the logo generator --}}
<script src="{{asset "built/dielinke-logo-generator.js"}}"></script>
<script>
let websiteTitle = "{{@site.title}}";
let color = new Object();
color.background = "#6F003C";
color.text = "#FFFFFF";
color.logoText = "#FFFFFF";
// call generateLogo with await
generateLogo(websiteTitle, color);
</script>
{{/if}}
{{!-- Ghost outputs required functional scripts with this tag, it should always be the last thing before the closing body tag --}}
{{ghost_foot}}
</body>
</html>