No default.hbs extending for the error page
This template should be kept as lightweight as you can
This commit is contained in:
parent
0c24ef562a
commit
5feaf31c27
130
error.hbs
130
error.hbs
|
@ -1,34 +1,118 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="{{@site.locale}}">
|
||||||
|
<head>
|
||||||
|
|
||||||
{{!< default}}
|
<meta charset="utf-8" />
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
<link rel="stylesheet" type="text/css" href="{{asset "built/screen.css"}}" />
|
||||||
|
|
||||||
<section class="gh-page gh-error">
|
<title>{{meta_title}}</title>
|
||||||
<div class="gh-container">
|
|
||||||
|
|
||||||
<section class="gh-error-content">
|
{{ghost_head}}
|
||||||
|
{{!-- Outputs important meta data and settings, should always be in <head> --}}
|
||||||
|
|
||||||
<h1 class="gh-error-code">{{statusCode}}</h1>
|
</head>
|
||||||
<p class="gh-error-description">{{message}}</p>
|
|
||||||
<p class="gh-error-link"><a href="{{@site.url}}">Go to the front page →</a></p>
|
|
||||||
|
|
||||||
{{#if errorDetails}}
|
<body class="{{body_class}}">
|
||||||
<section class="gh-error-stack">
|
<div class="gh-viewport">
|
||||||
<h4>Theme errors:</h4>
|
|
||||||
<ul class="gh-error-stack-list">
|
|
||||||
{{#foreach errorDetails}}
|
|
||||||
<li>
|
|
||||||
<h5 class="gh-error-stack-function">{{{rule}}}</h5>
|
|
||||||
|
|
||||||
{{#foreach failures}}
|
<header id="gh-head" class="gh-head">
|
||||||
<span class="gh-error-stack-file"><strong>Ref:</strong> {{ref}}</span><br>
|
<nav class="gh-head-inner gh-container">
|
||||||
<span class="gh-error-stack-file"><strong>Message:</strong> {{message}}</span>
|
|
||||||
|
<div class="gh-head-brand">
|
||||||
|
<a class="gh-head-logo" href="{{@site.url}}">
|
||||||
|
{{#if @site.logo}}
|
||||||
|
<img src="{{@site.logo}}" alt="{{@site.title}}" />
|
||||||
|
{{else}}
|
||||||
|
{{@site.title}}
|
||||||
|
{{/if}}
|
||||||
|
</a>
|
||||||
|
<a class="gh-burger" role="button">
|
||||||
|
<div class="gh-burger-box">
|
||||||
|
<div class="gh-burger-inner"></div>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<div class="gh-head-menu">
|
||||||
|
{{navigation}}
|
||||||
|
</div>
|
||||||
|
<div class="gh-head-actions">
|
||||||
|
<div class="gh-head-actions-list">
|
||||||
|
{{#if @site.facebook}}
|
||||||
|
<a href="{{facebook_url @site.facebook}}" title="Facebook" target="_blank" rel="noopener">{{> "icons/facebook"}}</a>
|
||||||
|
{{/if}}
|
||||||
|
{{#if @site.twitter}}
|
||||||
|
<a href="{{twitter_url @site.twitter}}" title="Twitter" target="_blank" rel="noopener">{{> "icons/twitter"}}</a>
|
||||||
|
{{/if}}
|
||||||
|
<a href="https://feedly.com/i/subscription/feed/{{@site.url}}/rss/" title="RSS" target="_blank" rel="noopener">{{> "icons/rss"}}</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<main class="gh-main">
|
||||||
|
|
||||||
|
<section class="gh-page gh-error">
|
||||||
|
<div class="gh-container">
|
||||||
|
|
||||||
|
<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>
|
||||||
|
|
||||||
|
{{#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>
|
||||||
|
|
||||||
|
{{#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}}
|
{{/foreach}}
|
||||||
</li>
|
</ul>
|
||||||
{{/foreach}}
|
</section>
|
||||||
</ul>
|
{{/if}}
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
</section>
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<footer class="gh-foot">
|
||||||
|
<div class="gh-container">
|
||||||
|
<div class="gh-foot-menu">
|
||||||
|
{{navigation}}
|
||||||
|
</div>
|
||||||
|
<div class="gh-foot-meta">
|
||||||
|
Published with <a href="https://ghost.org" target="_blank" rel="noopener">Ghost</a>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</footer>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script src="{{asset "built/jquery-3.4.1.min.js"}}"></script>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
$(document).ready(function () {
|
||||||
|
// Mobile Menu Trigger
|
||||||
|
$('.gh-burger').click(function () {
|
||||||
|
$('body').toggleClass('gh-head-open');
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
{{ghost_foot}}
|
||||||
|
{{!-- Outputs important scripts - should always be included before closing body tag --}}
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
Loading…
Reference in New Issue