Skip to content
This repository was archived by the owner on Jan 6, 2022. It is now read-only.
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 0 additions & 60 deletions assets/css/ghost/errors.css

This file was deleted.

1 change: 0 additions & 1 deletion assets/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
@import "ghost/header.css";
@import "ghost/content.css";
@import "ghost/readmore.css";
@import "ghost/errors.css";
@import "ghost/footer.css";

@layer base {
Expand Down
80 changes: 37 additions & 43 deletions error.hbs
Original file line number Diff line number Diff line change
@@ -1,50 +1,44 @@
{{!< default}}

<section class="w-full max-w-screen-xl mx-auto my-0">
<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>
<section class="max-w-screen-sm mx-auto content-center prose text-center">
<h1>{{statusCode}}</h1>
<p>{{message}}</p>
<p class="mt-4">
<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>
{{#if errorDetails}}
<section class="text-left py-4">
<h4>
Theme errors:
</h4>
<ul class="text-sm mt-2">
{{#foreach errorDetails}}
<li class="px-0 py-5 m-0">
<h5 class="mb-0.5 border-t border-gray-300">
{{{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 failures}}
<span>
<strong>
Ref:
</strong>
{{ref}}
</span>
<br />
<span>
<strong>
Message:
</strong>
{{message}}
</span>
{{/foreach}}
</ul>
</section>
{{/if}}
</li>
{{/foreach}}
</ul>
</section>
{{/if}}
</section>