From 833b95412db38c0572648149019cd405d9c9b862 Mon Sep 17 00:00:00 2001 From: John O'Nolan Date: Tue, 5 Nov 2019 10:48:34 +0700 Subject: [PATCH] Improve error template syntax --- error-404.hbs | 10 +++------- error.hbs | 12 +++++------- 2 files changed, 8 insertions(+), 14 deletions(-) diff --git a/error-404.hbs b/error-404.hbs index fe21bfd4..17ba8d8c 100644 --- a/error-404.hbs +++ b/error-404.hbs @@ -1,11 +1,10 @@ {{!-- -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. ---}} +A 404 error template, served whenever someone tries to access a page which does not exist. + +--}} - @@ -14,7 +13,6 @@ It's a good idea to keep this template as minimal as possible in terms of both f -
@@ -32,7 +30,6 @@ It's a good idea to keep this template as minimal as possible in terms of both f
-

{{statusCode}}

{{message}}

@@ -43,5 +40,4 @@ It's a good idea to keep this template as minimal as possible in terms of both f
- \ No newline at end of file diff --git a/error.hbs b/error.hbs index 61310e0f..e9267a0d 100644 --- a/error.hbs +++ b/error.hbs @@ -1,12 +1,11 @@ {{!-- -This error template is used for all 400/500 errors, except 404, 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. -You'll notice that we *don't* use any JavsScript, or ghost_head / ghost_foot in this file. ---}} +This error template is used for all server errors except 404, which has a custom template. +It's a good idea to keep this template as minimal as possible in terms of both file size and complexity. + +--}} - @@ -15,7 +14,6 @@ You'll notice that we *don't* use any JavsScript, or ghost_head / ghost_foot in -
@@ -60,7 +58,7 @@ You'll notice that we *don't* use any JavsScript, or ghost_head / ghost_foot in
+
- \ No newline at end of file