mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Merge pull request #3812 from felixrieseberg/iss3810-404
Center default user-error (404, etc.)
This commit is contained in:
commit
b92f201f08
1 changed files with 30 additions and 28 deletions
|
@ -21,36 +21,38 @@
|
||||||
</head>
|
</head>
|
||||||
<body class="{{bodyClass}}">
|
<body class="{{bodyClass}}">
|
||||||
<main role="main" id="main">
|
<main role="main" id="main">
|
||||||
<section class="error-content error-404 js-error-container">
|
<div id="container">
|
||||||
<section class="error-details">
|
<section class="error-content error-404 js-error-container">
|
||||||
<figure class="error-image">
|
<section class="error-details">
|
||||||
<img
|
<figure class="error-image">
|
||||||
class="error-ghost"
|
<img
|
||||||
src="{{asset "img/404-ghost@2x.png" ghost="true"}}"
|
class="error-ghost"
|
||||||
srcset="{{asset "img/404-ghost.png" ghost="true"}} 1x, {{asset "img/404-ghost@2x.png" ghost="true"}} 2x"/>
|
src="{{asset "img/404-ghost@2x.png" ghost="true"}}"
|
||||||
</figure>
|
srcset="{{asset "img/404-ghost.png" ghost="true"}} 1x, {{asset "img/404-ghost@2x.png" ghost="true"}} 2x"/>
|
||||||
<section class="error-message">
|
</figure>
|
||||||
<h1 class="error-code">{{code}}</h1>
|
<section class="error-message">
|
||||||
<h2 class="error-description">{{message}}</h2>
|
<h1 class="error-code">{{code}}</h1>
|
||||||
<a class="error-link" href="{{@blog.url}}">Go to the front page →</a>
|
<h2 class="error-description">{{message}}</h2>
|
||||||
|
<a class="error-link" href="{{@blog.url}}">Go to the front page →</a>
|
||||||
|
</section>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
{{#if stack}}
|
||||||
{{#if stack}}
|
<section class="error-stack">
|
||||||
<section class="error-stack">
|
<h3>Stack Trace</h3>
|
||||||
<h3>Stack Trace</h3>
|
<p><strong>{{message}}</strong></p>
|
||||||
<p><strong>{{message}}</strong></p>
|
<ul class="error-stack-list">
|
||||||
<ul class="error-stack-list">
|
{{#each stack}}
|
||||||
{{#each stack}}
|
<li>
|
||||||
<li>
|
at
|
||||||
at
|
{{#if function}}<em class="error-stack-function">{{function}}</em>{{/if}}
|
||||||
{{#if function}}<em class="error-stack-function">{{function}}</em>{{/if}}
|
<span class="error-stack-file">({{at}})</span>
|
||||||
<span class="error-stack-file">({{at}})</span>
|
</li>
|
||||||
</li>
|
{{/each}}
|
||||||
{{/each}}
|
</ul>
|
||||||
</ul>
|
</section>
|
||||||
</section>
|
{{/if}}
|
||||||
{{/if}}
|
</div>
|
||||||
</main>
|
</main>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
Loading…
Add table
Reference in a new issue