-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdefault.hbs
133 lines (95 loc) · 4.33 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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
<!DOCTYPE html>
<html lang="{{@site.locale}}" class="scroll-smooth overflow-x-hidden">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<link rel="stylesheet" href="{{asset 'build/css/build.css'}}" /> {{!-- link production ready css file --}}
{{ghost_head}}
{{#is "post, page"}}
<script src="{{asset 'build/js/prism.js'}}"></script>
{{/is}}
{{#is "post, page"}}
{{#match @custom.prismjs_code_highlight "Tomorrow Theme" }}
<link rel="stylesheet" href="{{asset 'build/css/tomorrow.css'}}">
{{else match @custom.prismjs_code_highlight "Twilight Theme" }}
<link rel="stylesheet" href="{{asset 'build/css/twilight.css'}}">
{{else match @custom.prismjs_code_highlight "Okaidia Theme" }}
<link rel="stylesheet" href="{{asset 'build/css/okaidia.css'}}">
{{else match @custom.prismjs_code_highlight "Dark Theme" }}
<link rel="stylesheet" href="{{asset 'build/css/dark.css'}}">
{{else}}
<link rel="stylesheet" href="{{asset 'build/css/default-prism.css'}}">
{{/match}}
{{/is}}
<style>
:root {
--kg-breakout-adjustment: 0px;
{{#if @custom.text_primary_color}}
--primary-theme-text-color: {{@custom.text_primary_color}};
{{/if}}
{{#if @custom.text_color}}
--main-text-color: {{@custom.text_color}};
{{/if}}
{{#if @custom.text_secondary_color}}
--secondary-theme-text-color: {{@custom.text_secondary_color}};
{{/if}}
{{#if @custom.text_accent_color}}
--accent-theme-text-color: {{@custom.text_accent_color}};
{{/if}}
}
</style>
</head>
<body {{#if @custom.background_color }} style="background-color: {{@custom.background_color}};" {{/if}} class="{{body_class}} text-foreground antialiased scroll-smooth ">
<header class="gap-10 w-screen grid grid-cols-1 md:grid-cols-3 px-6 py-6 lg:items-center lg:justify-between ">
<a class="flex flex-row justify-self-center items-center" href="{{@site.url}}">
{{#if @site.logo}}
<img src="{{@site.logo}}" class="w-[160px]" alt="{{@site.title}}" />
{{else}}
<h1 class="text-center text-lg"> {{@site.title}} </h1>
{{/if}}
</a>
{{"navigation"}}
<div class="flex-grow flex justify-center flex-row">
<li class="mx-2 flex items-center">
<button style="color:{{@custom.icons_text_color}}" data-ghost-search>{{> Icons/search}}</button>
</li>
{{#if @site.facebook}}
<li class="mx-2 flex items-center">
<a style="color:{{@custom.icons_text_color}}" target="_blank" href="{{facebook_url @site.facebook}}">
{{> Icons/facebook}}
</a>
</li>
{{/if}}
{{#if @site.twitter}}
<li class="mx-2 flex items-center">
<a style="color:{{@custom.icons_text_color}}" target="_blank" href="{{twitter_url @site.twitter}}">
{{> Icons/twitter}}
</a>
</li>
{{/if}}
{{#unless @member}}
<a style="background-color:{{@site.accent_color}}"
class="shadow-lg text-white w-20 mx-5 text-center p-1 rounded-sm" href="#/portal/signup"
data-portal="signup">Pro</a>
{{else}}
<a style="background-color:{{@site.accent_color}}"
class="shadow-lg text-white w-20 mx-5 text-center p-1 rounded-sm" href="#/portal/account"
data-portal="account">Account</a>
{{/unless}}
</div>
</header>
<main class="mt-6 flex flex-col">
{{{body}}}
</main>
{{!-- partials/footer --}}
<footer class="gap-10 w-screen grid grid-cols-1 sm:grid-cols-2 p-6 items-center">
{{#if @custom.copyright}}
<h2 class="text-sm text-center">{{@custom.copyright}}</h2>
{{/if}}
{{navigation type="secondary"}}
</footer>
{{!-- ghost header --}}
{{ghost_foot}}
</body>
</html>