-
Notifications
You must be signed in to change notification settings - Fork 13
/
error.hbs
51 lines (48 loc) · 1.95 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
<!doctype html>
<!--[if (IE 8)&!(IEMobile)]><html class="no-js lt-ie9" lang="en"><![endif]-->
<!--[if (gte IE 9)| IEMobile |!(IE)]><!-->
<html class="no-js" lang="en">
<!--<![endif]-->
<head>
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title>{{code}} — {{message}}</title>
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1, maximum-scale=1">
<meta name="apple-mobile-web-app-capable" content="yes" />
<link rel="shortcut icon" href="{{asset "favicon.ico"}}">
<meta http-equiv="cleartype" content="on">
<link href='//fonts.googleapis.com/css?family=Lato:300,400,300italic,400italic' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="{{asset "css/error.css" }}" />
</head>
<body>
<div class="container">
<header class="center">
<div class="blog-title"><a href="{{@blog.url}}">{{@blog.title}}</a></div>
<div class="blog-description">{{@blog.description}}</div>
</header>
<div class="error-container center">
<h2>😶{{code}}😶</h2>
<h2>{{message}}</h2>
<a href="{{@blog.url}}" class="small">← back</a>
{{#if stack}}
<h3>Stack Trace</h3>
<p><strong>{{message}}</strong></p>
<ul>
{{#each stack}}
<li>at
{{#if function}}<em class="error-stack-function">{{function}}</em>{{/if}}
<span class="error-stack-file">({{at}})</span>
</li>
{{/each}}
</ul>
{{/if}}
</div>
<footer class="center">
<p class="small"><a href="{{@blog.url}}">{{@blog.title}}</a> © {{date format="YYYY"}}</p>
<p class="small">Powered by <a href="https://ghost.org" target="_blank">Ghost</a> | Theme - <a href="https://github.com/imgarylai/text" target="_blank">text</a></p>
</footer>
</div>
</body>
</html>