2017-06-16 09:44:06 +00:00
|
|
|
{{!--
|
2021-03-03 13:11:16 +00:00
|
|
|
|
|
|
|
There are two error files in this theme, one for 404s and one for all other errors.
|
|
|
|
This file is the latter, and handle all 400/500 errors that might occur.
|
|
|
|
|
|
|
|
Because 500 errors in particular usuall happen when a server is struggling, this
|
|
|
|
template is as simple as possible. No template dependencies, no JS, no API calls.
|
|
|
|
This is to prevent rendering the error-page itself compounding the issue causing
|
|
|
|
the error in the first place.
|
|
|
|
|
|
|
|
Keep this template as lightweight as you can!
|
|
|
|
|
2017-06-16 09:44:06 +00:00
|
|
|
--}}
|
|
|
|
|
2017-06-05 11:19:29 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8" />
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
|
|
<title>{{meta_title}}</title>
|
|
|
|
<meta name="HandheldFriendly" content="True" />
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
2017-06-16 12:23:03 +00:00
|
|
|
<link rel="stylesheet" type="text/css" href="{{asset "built/screen.css"}}" />
|
2017-06-05 11:19:29 +00:00
|
|
|
</head>
|
2019-10-28 15:28:25 +00:00
|
|
|
<body>
|
2017-06-05 11:19:29 +00:00
|
|
|
<div class="site-wrapper">
|
|
|
|
|
2019-10-28 15:28:25 +00:00
|
|
|
<header class="site-header no-image">
|
|
|
|
<div class="site-nav-main outer">
|
|
|
|
<div class="inner">
|
|
|
|
<nav class="site-nav-center">
|
|
|
|
{{#if @site.logo}}
|
|
|
|
<a class="site-nav-logo" href="{{@site.url}}"><img src="{{img_url @site.logo size="xs"}}"
|
|
|
|
alt="{{@site.title}}" /></a>
|
|
|
|
{{else}}
|
2019-01-08 17:19:51 +00:00
|
|
|
<a class="site-nav-logo" href="{{@site.url}}">{{@site.title}}</a>
|
2019-10-28 15:28:25 +00:00
|
|
|
{{/if}}
|
|
|
|
</nav>
|
|
|
|
</div>
|
2017-06-13 12:48:06 +00:00
|
|
|
</div>
|
|
|
|
</header>
|
|
|
|
|
2021-03-04 01:22:45 +00:00
|
|
|
<main class="outer error-content">
|
2017-06-13 12:48:06 +00:00
|
|
|
<div class="inner">
|
|
|
|
|
|
|
|
<section class="error-message">
|
2019-10-21 05:43:34 +00:00
|
|
|
<h1 class="error-code">{{statusCode}}</h1>
|
2017-06-13 12:48:06 +00:00
|
|
|
<p class="error-description">{{message}}</p>
|
2019-01-08 17:19:51 +00:00
|
|
|
<a class="error-link" href="{{@site.url}}">Go to the front page →</a>
|
2017-06-13 12:48:06 +00:00
|
|
|
</section>
|
|
|
|
|
|
|
|
{{#if errorDetails}}
|
|
|
|
<section class="error-stack">
|
|
|
|
<h3>Theme errors</h3>
|
|
|
|
<ul class="error-stack-list">
|
2019-05-07 13:37:14 +00:00
|
|
|
{{#foreach errorDetails}}
|
2017-06-13 12:48:06 +00:00
|
|
|
<li>
|
|
|
|
<em class="error-stack-function">{{{rule}}}</em>
|
|
|
|
|
2019-05-07 13:37:14 +00:00
|
|
|
{{#foreach failures}}
|
2017-06-13 12:48:06 +00:00
|
|
|
<p><span class="error-stack-file">Ref: {{ref}}</span></p>
|
|
|
|
<p><span class="error-stack-file">Message: {{message}}</span></p>
|
2019-05-07 13:37:14 +00:00
|
|
|
{{/foreach}}
|
2017-06-13 12:48:06 +00:00
|
|
|
</li>
|
2019-05-07 13:37:14 +00:00
|
|
|
{{/foreach}}
|
2017-06-13 12:48:06 +00:00
|
|
|
</ul>
|
|
|
|
</section>
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</main>
|
|
|
|
</div>
|
2017-06-05 11:19:29 +00:00
|
|
|
</body>
|
|
|
|
</html>
|