From 7360bcf294af531be2660b044308c17453f8cf5e Mon Sep 17 00:00:00 2001 From: Damillora Date: Thu, 12 Nov 2020 03:18:26 +0700 Subject: [PATCH] Change generic error page to one that doesn't uses theme helpers --- error-404.hbs | 13 +++++++++++ error.hbs | 61 +++++++++++++++++++++++++++++++++++++++++---------- package.json | 2 +- 3 files changed, 63 insertions(+), 13 deletions(-) create mode 100644 error-404.hbs diff --git a/error-404.hbs b/error-404.hbs new file mode 100644 index 0000000..d73ea74 --- /dev/null +++ b/error-404.hbs @@ -0,0 +1,13 @@ +{{!< default}} +
+ {{> header-background background=@site.cover_image}} {{!--Special header-image.hbs partial to generate the background image--}} +
+
+
+
+

{{statusCode}}

+

{{message}}

+ Go to the front page → +
+ + diff --git a/error.hbs b/error.hbs index d73ea74..e58bf5a 100644 --- a/error.hbs +++ b/error.hbs @@ -1,13 +1,50 @@ -{{!< default}} -
- {{> header-background background=@site.cover_image}} {{!--Special header-image.hbs partial to generate the background image--}} -
-
-
-
-

{{statusCode}}

-

{{message}}

- Go to the front page → -
- + + + + + + {{statusCode}} - {{message}} + + + + + + + + + + + + + + +
+
+
+
+
+
+
+

{{statusCode}}

+

{{message}}

+
+ {{#if errorDetails}} +
    + {{#foreach errorDetails}} +
  • + {{{rule}}} + {{#foreach failures}} +

    Ref: {{ref}}

    +

    Message: {{message}}

    + {{/foreach}} +
  • + {{/foreach}} +
+ {{/if}} +
+
+
+ + + diff --git a/package.json b/package.json index 443221a..3654930 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "yuika", "description": "nanao.moe's blog theme", - "version": "2.2.2", + "version": "2.2.3", "engines": { "ghost-api": "v3" },