-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherror.hbs
More file actions
92 lines (71 loc) · 4.17 KB
/
error.hbs
File metadata and controls
92 lines (71 loc) · 4.17 KB
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
<!DOCTYPE html>
<html lang="{{@site.locale}}" class="scroll-smooth">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="{{asset 'dist/css/styles.css' hasMinFile=" true"}}" />
<title>{{statusCode}} — {{message}}</title>
<meta name="robots" content="noindex,nofollow">
{{> "style-script"}} {{!-- partials/style-script.hbs --}}
{{ghost_head}}
</head>
<body class="{{body_class}} bg-surface dark:bg-surface-dark text-on-surface dark:text-on-surface-dark overflow-hidden relative p-0 m-0">
<main x-data="{ sidebarIsOpen: false }" class="relative flex min-h-screen w-full flex-col md:flex-row">
{{!-- <!-- This allows screen readers to skip the sidebar and go directly to the main content. --> --}}
<a class="sr-only" href="#main-content">skip to the main content</a>
{{!-- Sidebar --}}
{{> "sidebar"}}
<!-- top navbar & main content -->
<div class="flex h-svh w-full flex-col">
{{> "header"}}
<div id="main-content" class="flex-1 h-svh w-full p-4 overflow-y-auto px-4 py-4 md:overflow-y-auto">
<div class="p-2">
<section class="my-16 w-full px-5 py-12 text-center">
<div class="mt-5 mb-8 inline-block">
<h1
class="text-[130px] leading-none font-black tracking-tighter text-[#9b9999] select-none md:text-[360px]">
{{statusCode}}
</h1>
</div>
<p class="mb-4 text-xl font-bold md:text-2xl">
{{message}}
</p>
{{#if errorDetails}}
<section class="error-stack">
<h3>Theme errors</h3>
<ul class="flex flex-col items-start gap-6 text-left ">
{{#foreach errorDetails}}
<li class="mb-4 text-sm font-bold md:text-xl">
<em class="error-stack-function">{{{rule}}}</em>
{{#foreach failures}}
<p><span class="error-stack-file">Ref: {{ref}}</span></p>
<p><span class="error-stack-file">Message: {{message}}</span></p>
{{/foreach}}
</li>
{{/foreach}}
</ul>
</section>
{{/if}}
<div class="flex justify-center mt-2 gap-4">
<button type="button"
class="inline-flex justify-center items-center gap-2 whitespace-nowrap rounded-radius bg-primary border border-primary dark:border-primary-dark px-4 py-2 text-sm font-medium tracking-wide text-on-primary transition hover:opacity-75 text-center focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary active:opacity-100 active:outline-offset-0 disabled:opacity-75 disabled:cursor-not-allowed dark:bg-primary-dark dark:text-on-primary-dark dark:focus-visible:outline-primary-dark">
<svg class="size-5 fill-on-primary dark:fill-on-primary-dark"
xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"
fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"
stroke-linejoin="round">
<path d="m12 19-7-7 7-7" />
<path d="M19 12H5" />
</svg>
Go back to Home
</button>
</div>
</section>
{{> "footer" }} {{!-- partials/footer.hbs --}}
</div>
</div>
</div>
</main>
{{!-- foot --}}
{{ghost_foot}}
</body>
</html>