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.
 
 
 

64 lines
2.5 KiB

  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 JavsScript, 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. </head>
  16. <body class="error-template">
  17. <div class="site-wrapper">
  18. <header class="site-header outer {{#if feature_image}}" style="background-image: url({{feature_image}}){{else}}no-cover{{/if}}">
  19. <div class="inner">
  20. <nav class="site-nav-center">
  21. {{#if @blog.logo}}
  22. <a class="site-nav-logo" href="{{@blog.url}}"><img src="{{@blog.logo}}" alt="{{@blog.title}}" /></a>
  23. {{else}}
  24. <a class="site-nav-logo" href="{{@blog.url}}">{{@blog.title}}</a>
  25. {{/if}}
  26. </nav>
  27. </div>
  28. </header>
  29. <main id="site-main" class="site-main outer" role="main">
  30. <div class="inner">
  31. <section class="error-message">
  32. <h1 class="error-code">{{code}}</h1>
  33. <p class="error-description">{{message}}</p>
  34. <a class="error-link" href="{{@blog.url}}">Go to the front page →</a>
  35. </section>
  36. {{#if errorDetails}}
  37. <section class="error-stack">
  38. <h3>Theme errors</h3>
  39. <ul class="error-stack-list">
  40. {{#each errorDetails}}
  41. <li>
  42. <em class="error-stack-function">{{{rule}}}</em>
  43. {{#each failures}}
  44. <p><span class="error-stack-file">Ref: {{ref}}</span></p>
  45. <p><span class="error-stack-file">Message: {{message}}</span></p>
  46. {{/each}}
  47. </li>
  48. {{/each}}
  49. </ul>
  50. </section>
  51. {{/if}}
  52. </div>
  53. </main>
  54. </div>
  55. </body>
  56. </html>