Search code examples
ghost-blog

custom error page not being used


I'm having trouble getting my custom error page to work. I have followed the instructions on http://docs.ghost.org/themes/ and added an error.hbs template into the root of my theme. The code inside this template is really simple:

{{!< default}}
<section class="error">
    <h1>{{code}}</h1>
    <p>{{message}}</p>
</section>

Each time I try to test it by going to a non existent page, the blog shows the default ghost error page every time.

Have I missed anything crucial?


Solution

  • If you are using ghost 0.4.2 I'm sorry this is a bug and would be fixed in 0.5 release

    see the bug issue at github https://github.com/TryGhost/Ghost/issues/2513