-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy patherror.hbs
65 lines (62 loc) · 2.39 KB
/
error.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
<!DOCTYPE html>
<html lang="{{@site.locale}}">
<head>
{{!-- Basic meta - advanced meta is output with {ghost_head} below --}}
<title>{{meta_title}}</title>
{{!-- Theme JS --}}
<script src="https://kit.fontawesome.com/0dae50f8a6.js" crossorigin="anonymous"></script>
<script src="{{asset 'built/main.js'}}"></script>
<script src="{{asset 'built/page.js'}}"></script>
<link rel="stylesheet" type="text/css" href="{{asset 'built/global.css'}}" />
{{!-- Advanced SEO meta data --}}
{{ghost_head}}
</head>
<body class="error-template">
{{> "header" }}
<div class="viewport">
<main class="error-body-content error-{{statusCode}}">
<section class="error-message">
<div class="error-message-top">
<div class="error">
<h1 class="error-code">{{statusCode}}</h1>
<p class="error-description">{{#match statusCode "=" 404}} <i class="fa-sharp fa-solid fa-file-circle-xmark"></i> {{/match}} {{message}}.</p>
</div>
<div>
<p class="error-suggestion">Feeling lost?</p>
<a class="error-link" href="{{@site.url}}">Go to the front page →</a>
</div>
</div>
<footer class="error-footer">
<p class="error-explanation">Perhaps you'd be interested in some of our latest posts:</p>
{{#match statusCode "=" 404}}
<div class="suggested-posts">
{{#get "posts" order="published_at desc" include="authors,tags" limit="3"}}
{{#foreach posts}}
{{> "post-card"}}
{{/foreach}}
{{/get}}
</div>
{{/match}}
</footer>
</section>
{{#if errorDetails}}
<section class="error-stack">
<h3>Theme errors</h3>
<ul class="error-stack-list">
{{#foreach errorDetails}}
<li>
<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>
</main>
{{> "footer/footer" }}
</body>
</html>