mirror of
https://github.com/ViViDboarder/Vivid-Casper.git
synced 2024-12-23 03:57:38 +00:00
8993409296
refs. https://github.com/TryGhost/Casper/issues/632 Error page fixes and improvements - uses default template (i.e. standard header and footer) on 404 error page - fixed not displaying authors and primary tags on recommended posts on 404 error page - fixed background for navigation bar on generic error page - refined error code and message styles
30 lines
968 B
Handlebars
30 lines
968 B
Handlebars
{{!--
|
|
This error template is used for all 404 errors, 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.
|
|
--}}
|
|
|
|
{{!< default}}
|
|
{{!-- The tag above means: insert everything in this file
|
|
into the {body} of the default.hbs template --}}
|
|
|
|
<header class="site-header">
|
|
{{> site-header}}
|
|
</header>
|
|
|
|
<main id="site-main" class="site-main outer error-content">
|
|
<div class="inner">
|
|
<section class="error-message">
|
|
<h1 class="error-code">{{statusCode}}</h1>
|
|
<p class="error-description">{{message}}</p>
|
|
<a class="error-link" href="{{@site.url}}">Go to the front page →</a>
|
|
</section>
|
|
|
|
{{#get "posts" limit="3" include="authors,tags"}}
|
|
<div class="post-feed">
|
|
{{#foreach posts}}
|
|
{{> "post-card"}}
|
|
{{/foreach}}
|
|
</div>
|
|
{{/get}}
|
|
</div>
|
|
</main> |