From 738d73dc03a833b0324dbe0beaefe6e23499524b Mon Sep 17 00:00:00 2001 From: leigh-mil Date: Wed, 2 Oct 2019 10:29:42 -0400 Subject: [PATCH] Add in a default error sub heading --- .secrets.baseline | 4 ++-- templates/error.html | 8 +++++++- translations.yaml | 1 + 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.secrets.baseline b/.secrets.baseline index 4c29a6d9..13d1bfb6 100644 --- a/.secrets.baseline +++ b/.secrets.baseline @@ -3,7 +3,7 @@ "files": "^.secrets.baseline$", "lines": null }, - "generated_at": "2019-09-30T13:51:34Z", + "generated_at": "2019-10-02T14:52:59Z", "plugins_used": [ { "base64_limit": 4.5, @@ -199,5 +199,5 @@ } ] }, - "version": "0.12.5" + "version": "0.12.6" } diff --git a/templates/error.html b/templates/error.html index 00dd5f51..74ecb956 100644 --- a/templates/error.html +++ b/templates/error.html @@ -9,7 +9,13 @@ {{ Icon('cloud', classes="icon--red icon--large")}}

{{ code }} - {{ message }}

-

{{ "errors.not_found_sub" | translate }}

+

+ {% if code == 404 -%} + {{ "errors.not_found_sub" | translate }} + {% else %} + {{ "errors.default_sub" | translate }} + {%- endif %} +


diff --git a/translations.yaml b/translations.yaml index 625870aa..83cbe0ad 100644 --- a/translations.yaml +++ b/translations.yaml @@ -98,6 +98,7 @@ components:

title: Here’s how you know errors: + default_sub: An error has occured! not_found: Page Not Found not_found_sub: Looks like that page does not exist! email: