From b65aa4748bdcad9f62e20467dd79a2bc3f573192 Mon Sep 17 00:00:00 2001 From: Adam Petrie Date: Wed, 27 Jul 2016 17:00:19 -0400 Subject: [PATCH 1/7] Initial 404 page --- site/404.html | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 site/404.html diff --git a/site/404.html b/site/404.html new file mode 100644 index 00000000..4a565d6e --- /dev/null +++ b/site/404.html @@ -0,0 +1,22 @@ +--- +layout: default +permalink: /404.html +--- + +
+
+
+

404 - Page Not Found

+
+
+
+ +
+
+
+
+ The page you requested was not found. +
+
+
+
From ea185f11af99509d2acfc906938e79a37cc60b24 Mon Sep 17 00:00:00 2001 From: Adam Petrie Date: Wed, 27 Jul 2016 18:32:49 -0400 Subject: [PATCH 2/7] sitemap: false so that the error page is not indexed --- site/404.html | 1 + 1 file changed, 1 insertion(+) diff --git a/site/404.html b/site/404.html index 4a565d6e..8fe6a91d 100644 --- a/site/404.html +++ b/site/404.html @@ -1,6 +1,7 @@ --- layout: default permalink: /404.html +sitemap: false ---
From 954c0bfe077894a455b9e30d9e14829c98059d54 Mon Sep 17 00:00:00 2001 From: Adam Petrie Date: Wed, 27 Jul 2016 18:33:16 -0400 Subject: [PATCH 3/7] Use more generic wording. --- site/404.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/site/404.html b/site/404.html index 8fe6a91d..75d90feb 100644 --- a/site/404.html +++ b/site/404.html @@ -7,7 +7,7 @@ sitemap: false
-

404 - Page Not Found

+

404 - Not Found

@@ -16,7 +16,7 @@ sitemap: false
- The page you requested was not found. + The resource you requested was not found.
From 142957ff49177a0bb1eb7836f72dbb2cde7a93bc Mon Sep 17 00:00:00 2001 From: Adam Petrie Date: Wed, 27 Jul 2016 19:08:37 -0400 Subject: [PATCH 4/7] Create error template that has no main nav or footer. --- site/404.html | 2 +- site/_layouts/error.html | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 site/_layouts/error.html diff --git a/site/404.html b/site/404.html index 75d90feb..d931859a 100644 --- a/site/404.html +++ b/site/404.html @@ -1,5 +1,5 @@ --- -layout: default +layout: error permalink: /404.html sitemap: false --- diff --git a/site/_layouts/error.html b/site/_layouts/error.html new file mode 100644 index 00000000..f5bc5c9b --- /dev/null +++ b/site/_layouts/error.html @@ -0,0 +1,23 @@ +{% include top.html %} + + +
+
+ +
+
+ + {{ content }} + + {% include anchor_links.html %} + {% include analytics.html %} + + + From 83456e7cd2171b784ecdcc98f4c2baa69f19aed2 Mon Sep 17 00:00:00 2001 From: Adam Petrie Date: Wed, 27 Jul 2016 19:09:20 -0400 Subject: [PATCH 5/7] Add helpful links and minor alignment tweak. --- site/404.html | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/site/404.html b/site/404.html index d931859a..ac005bdd 100644 --- a/site/404.html +++ b/site/404.html @@ -6,7 +6,7 @@ sitemap: false
-
+

404 - Not Found

@@ -15,9 +15,24 @@ sitemap: false
-
- The resource you requested was not found. -
+

The resource you requested was not found. Here are some links to help you find your way:

+
From 1155371f4eb84d7d04f6d20c3545b1a357066adf Mon Sep 17 00:00:00 2001 From: Adam Petrie Date: Wed, 27 Jul 2016 19:53:36 -0400 Subject: [PATCH 6/7] Puns FTW --- site/404.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/404.html b/site/404.html index ac005bdd..4240cb0e 100644 --- a/site/404.html +++ b/site/404.html @@ -7,7 +7,7 @@ sitemap: false
-

404 - Not Found

+

Huh. It seems that page is
Hyde-ing...

From 989fc9c3dbb1c268052d56effa46bd6f3e9c9fb3 Mon Sep 17 00:00:00 2001 From: Adam Petrie Date: Wed, 27 Jul 2016 19:54:07 -0400 Subject: [PATCH 7/7] Centre align text and use nav styles on helpful links. --- site/404.html | 38 ++++++++++++++++++++------------------ 1 file changed, 20 insertions(+), 18 deletions(-) diff --git a/site/404.html b/site/404.html index 4240cb0e..e21f2323 100644 --- a/site/404.html +++ b/site/404.html @@ -14,25 +14,27 @@ sitemap: false
-
+

The resource you requested was not found. Here are some links to help you find your way:

- +