Vivid-Casper/error.hbs

64 lines
2.5 KiB
Handlebars
Raw Normal View History

2017-06-16 09:44:06 +00:00
{{!--
This error template is used for all 400/500 errors, except 404, which might occur on your site.
It's a good idea to keep this template as minimal as possible in terms of both file size and complexity.
You'll notice that we *don't* use any JavsScript, or ghost_head / ghost_foot in this file.
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" />
<link rel="stylesheet" type="text/css" href="{{asset "built/screen.css"}}" />
2017-06-05 11:19:29 +00:00
</head>
2017-06-13 12:48:06 +00:00
<body class="error-template">
2017-06-05 11:19:29 +00:00
<div class="site-wrapper">
<header class="site-header outer {{#if feature_image}}" style="background-image: url({{feature_image}}){{else}}no-image{{/if}}">
2017-06-13 12:48:06 +00:00
<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>
2017-06-13 12:48:06 +00:00
{{else}}
<a class="site-nav-logo" href="{{@site.url}}">{{@site.title}}</a>
2017-06-13 12:48:06 +00:00
{{/if}}
</nav>
</div>
</header>
<main id="site-main" class="site-main outer">
2017-06-13 12:48:06 +00:00
<div class="inner">
<section class="error-message">
<h1 class="error-code">{{code}}</h1>
<p class="error-description">{{message}}</p>
<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">
{{#foreach errorDetails}}
2017-06-13 12:48:06 +00:00
<li>
<em class="error-stack-function">{{{rule}}}</em>
{{#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>
{{/foreach}}
2017-06-13 12:48:06 +00:00
</li>
{{/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>