forked from TryGhost/Starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
error.hbs
34 lines (26 loc) · 1.08 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
{{!< default}}
<section class="gh-page gh-error">
<div class="gh-container">
<section class="gh-error-content">
<h1 class="gh-error-code">{{statusCode}}</h1>
<p class="gh-error-description">{{message}}</p>
<p class="gh-error-link"><a href="{{@site.url}}">Go to the front page →</a></p>
{{#if errorDetails}}
<section class="gh-error-stack">
<h4>Theme errors:</h4>
<ul class="gh-error-stack-list">
{{#foreach errorDetails}}
<li>
<h5 class="gh-error-stack-function">{{{rule}}}</h5>
{{#foreach failures}}
<span class="gh-error-stack-file"><strong>Ref:</strong> {{ref}}</span><br>
<span class="gh-error-stack-file"><strong>Message:</strong> {{message}}</span>
{{/foreach}}
</li>
{{/foreach}}
</ul>
</section>
{{/if}}
</section>
</div>
</section>