mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
2ea7d5432b
closes: https://github.com/TryGhost/Toolbox/issues/193 - Our Casper fixture was several years out of date. - I'd already updated the ghost-api to point to the latest API version, which was the main difference - This makes sure the full fixture is up to date and correct, and therefore that we're truly testing if Ghost right now works - It also adds instructions for how to update it in future GOTCHA: the mock-express-style tests are failing if the API difference between test-theme and casper are different - I've tried to look into why this is - it's something to do with the overridden route settings not working properly if the API version changes - Given that we may not keep this style of testing AND we are definitely not keeping API versions, I'm ignoreing this for now - To get around it, I'm setting both themes to be v4 API, so that Casper is exactly as in main
37 lines
No EOL
1.1 KiB
Handlebars
37 lines
No EOL
1.1 KiB
Handlebars
{{!< default}}
|
|
|
|
{{!--
|
|
|
|
There are two error files in this theme, one for 404s and one for all other errors.
|
|
This file is the former, and handles all 404 Page Not Found errors.
|
|
|
|
The 404 error is the most common error that a visitor might see, for example when
|
|
following a broken link
|
|
|
|
Keep this template as lightweight as you can!
|
|
|
|
--}}
|
|
|
|
<section class="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>
|
|
</div>
|
|
</section>
|
|
|
|
{{!-- Given that people landing on this page didn't find what they
|
|
were looking for, let's give them some alternative stuff to read. --}}
|
|
<aside class="read-more-wrap">
|
|
<div class="read-more inner">
|
|
{{#get "posts" include="authors" limit="3" as |more_posts|}}
|
|
{{#if more_posts}}
|
|
{{#foreach more_posts}}
|
|
{{> "post-card"}}
|
|
{{/foreach}}
|
|
{{/if}}
|
|
{{/get}}
|
|
</div>
|
|
</aside> |