Custom Ghost theme for my blog, based on Casper https://www.geber.ga
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

error.hbs 2.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. {{!--
  2. This error template is used for all 400/500 errors, except 404, which might occur on your site.
  3. It's a good idea to keep this template as minimal as possible in terms of both file size and complexity.
  4. You'll notice that we *don't* use any JavaScript, or ghost_head / ghost_foot in this file.
  5. --}}
  6. <!DOCTYPE html>
  7. <html>
  8. <head>
  9. <meta charset="utf-8" />
  10. <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  11. <title>{{meta_title}}</title>
  12. <meta name="HandheldFriendly" content="True" />
  13. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  14. <link rel="stylesheet" type="text/css" href="{{asset "built/screen.css"}}" />
  15. <link rel="stylesheet" type="text/css" href="{{asset "built/custom.css"}}" />
  16. </head>
  17. <body class="error-template">
  18. <div class="site-wrapper">
  19. <header class="site-header outer {{#if feature_image}}" style="background-image: url({{feature_image}}){{else}}no-image{{/if}}">
  20. <div class="inner">
  21. <nav class="site-nav-center">
  22. {{#if @site.logo}}
  23. <a class="site-nav-logo" href="{{@site.url}}"><img src="{{img_url @site.logo size="xs"}}" alt="{{@site.title}}" /></a>
  24. {{else}}
  25. <a class="site-nav-logo" href="{{@site.url}}">{{@site.title}}</a>
  26. {{/if}}
  27. </nav>
  28. </div>
  29. </header>
  30. <main id="site-main" class="site-main outer">
  31. <div class="inner">
  32. <section class="error-message">
  33. <h1 class="error-code">{{code}}</h1>
  34. <p class="error-description">{{message}}</p>
  35. <a class="error-link" href="{{@site.url}}">Go to the front page →</a>
  36. </section>
  37. {{#if errorDetails}}
  38. <section class="error-stack">
  39. <h3>Theme errors</h3>
  40. <ul class="error-stack-list">
  41. {{#foreach errorDetails}}
  42. <li>
  43. <em class="error-stack-function">{{{rule}}}</em>
  44. {{#foreach failures}}
  45. <p><span class="error-stack-file">Ref: {{ref}}</span></p>
  46. <p><span class="error-stack-file">Message: {{message}}</span></p>
  47. {{/foreach}}
  48. </li>
  49. {{/foreach}}
  50. </ul>
  51. </section>
  52. {{/if}}
  53. </div>
  54. </main>
  55. </div>
  56. </body>
  57. </html>