From 76aa3d633c2864a89eb18b129282f478f6b6c767 Mon Sep 17 00:00:00 2001 From: "Felix W. Dekker" Date: Wed, 9 Jun 2021 17:54:31 +0200 Subject: [PATCH] Revert "Add maintenance page using custom error code" This reverts the previous commit. --- package.json | 2 +- src/main/_data/error-pages.json | 5 ----- src/main/template.njk | 8 ++------ 3 files changed, 3 insertions(+), 12 deletions(-) diff --git a/package.json b/package.json index 41f68bd..0c9eb96 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "error-pages", - "version": "1.3.2", + "version": "1.3.1", "description": "Error pages for my website.", "author": "F.W. Dekker", "browser": "dist/bundle.js", diff --git a/src/main/_data/error-pages.json b/src/main/_data/error-pages.json index cc9319c..9fde2df 100644 --- a/src/main/_data/error-pages.json +++ b/src/main/_data/error-pages.json @@ -98,10 +98,5 @@ { "name": "HTTP version not supported", "code": "505" - }, - { - "name": "Maintenance", - "code": "590", - "maintenance": "true" } ] diff --git a/src/main/template.njk b/src/main/template.njk index 6c35909..dd438bb 100644 --- a/src/main/template.njk +++ b/src/main/template.njk @@ -37,13 +37,9 @@ permalink: "{{ errorPage.code | slug }}.html"
-

{{ errorPage.name }}{% if not errorPage.maintenance %} ({{ errorPage.code }}){% endif %}

+

{{ errorPage.name }} ({{ errorPage.code }})

Sorry for the inconvenience. - {% if errorPage.maintenance %} - Please try again in a minute or so. - {% else %} - You may want to try going to this website's homepage. - {% endif %} + You may want to try going to this website's homepage.