forked from hoist/hoist-ghost
-
Notifications
You must be signed in to change notification settings - Fork 14
/
error.hbs
30 lines (27 loc) · 1.07 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
{{!< default}}
<header>
<span><a href="http://www.hoist.io">Hoist.io</a></span>
</header>
<section class="error-content error-404 js-error-container">
<figure class="error-image">
<img class="error-ghost" src="{{asset "img/404-ghost@2x.png" ghost="true"}}" srcset="{{asset "img/404-ghost.png" ghost="true"}} 1x, {{asset "img/404-ghost@2x.png" ghost="true"}} 2x"/>
</figure>
<h1 class="error-code">{{code}}</h1>
<p class="error-description">{{message}}</p>
<p><a class="error-link" href="{{@blog.url}}">Go to the front page→</a></p>
</section>
{{#if stack}}
<section class="error-stack">
<h3>Stack Trace</h3>
<p><strong>{{message}}</strong></p>
<ul class="error-stack-list">
{{#foreach stack}}
<li>
at
{{#if function}}<em class="error-stack-function">{{function}}</em>{{/if}}
<span class="error-stack-file">({{at}})</span>
</li>
{{/foreach}}
</ul>
</section>
{{/if}}