3 There are two error files in this theme, one for 404s and one for all other errors.
4 This file is the latter, and handle all 400/500 errors that might occur.
6 Because 500 errors in particular usuall happen when a server is struggling, this
7 template is as simple as possible. No template dependencies, no JS, no API calls.
8 This is to prevent rendering the error-page itself compounding the issue causing
9 the error in the first place.
11 Keep this template as lightweight as you can!
18 <meta charset="utf-8" />
19 <meta http-equiv="X-UA-Compatible" content="IE=edge" />
20 <title>{{meta_title}}</title>
21 <meta name="HandheldFriendly" content="True" />
22 <meta name="viewport" content="width=device-width, initial-scale=1.0" />
23 <link rel="stylesheet" type="text/css" href="{{asset "built/screen.css"}}" />
26 <div class="site-wrapper">
28 <header class="site-header no-image">
29 <div class="site-nav-main outer">
31 <nav class="site-nav-center">
33 <a class="site-nav-logo" href="{{@site.url}}"><img src="{{img_url @site.logo size="xs"}}"
34 alt="{{@site.title}}" /></a>
36 <a class="site-nav-logo" href="{{@site.url}}">{{@site.title}}</a>
43 <main class="outer error-content">
46 <section class="error-message">
47 <h1 class="error-code">{{statusCode}}</h1>
48 <p class="error-description">{{message}}</p>
49 <a class="error-link" href="{{@site.url}}">Go to the front page →</a>
53 <section class="error-stack">
55 <ul class="error-stack-list">
56 {{#foreach errorDetails}}
58 <em class="error-stack-function">{{{rule}}}</em>
61 <p><span class="error-stack-file">Ref: {{ref}}</span></p>
62 <p><span class="error-stack-file">Message: {{message}}</span></p>