mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-15 19:52:01 +03:00
88dde9ed4a
- Uses utils/ghost-paths to resolve paths - {{gh-path}} or {{gh-path ‘blog’}} for Ghost’s root (mysubdir/) - {{gh-path ‘admin’}} for Ghost’s admin root (/mysubdir/ghost) - {{gh-path ‘api’}} for Ghost’s admin root (/mysubdir/ghost/api/v0.1)
29 lines
1.0 KiB
Handlebars
29 lines
1.0 KiB
Handlebars
<section class="error-content error-404 js-error-container">
|
|
<section class="error-details">
|
|
<figure class="error-image">
|
|
<img class="error-ghost" {{bind-attr src=ghostPaths.errorImageSrc srcset=ghostPaths.errorImageSrcSet}} />
|
|
</figure>
|
|
<section class="error-message">
|
|
<h1 class="error-code">{{code}}</h1>
|
|
<h2 class="error-description">{{message}}</h2>
|
|
<a class="error-link" href="{{gh-path 'blog'}}">Go to the front page →</a>
|
|
</section>
|
|
</section>
|
|
</section>
|
|
|
|
{{#if stack}}
|
|
<section class="error-stack">
|
|
<h3>Stack Trace</h3>
|
|
<p><strong>{{message}}</strong></p>
|
|
<ul class="error-stack-list">
|
|
{{#each stack}}
|
|
<li>
|
|
at
|
|
{{#if function}}<em class="error-stack-function">{{function}}</em>{{/if}}
|
|
<span class="error-stack-file">({{at}})</span>
|
|
</li>
|
|
{{/each}}
|
|
</ul>
|
|
</section>
|
|
{{/if}}
|