From 75e05ce24cca470984fe8f56231392b66bf46b06 Mon Sep 17 00:00:00 2001 From: Jonah Aragon Date: Tue, 2 Apr 2019 23:38:08 -0500 Subject: [PATCH] New 404 (#821) * Split apart layouts Some pages don't need a footer. * 404 Redesign --- 404.html | 25 +++++++++++++++++-------- _layouts/default.html | 31 +++++++++++-------------------- _layouts/minimal.html | 12 ++++++++++++ assets/css/style.scss | 4 ++++ 4 files changed, 44 insertions(+), 28 deletions(-) create mode 100644 _layouts/minimal.html diff --git a/404.html b/404.html index 49233e91..6e8e7276 100644 --- a/404.html +++ b/404.html @@ -1,14 +1,23 @@ --- -layout: default +layout: minimal active_page: 404 ---
-

404

-

Page not found :(

-

We're redirecting you to the home page in 5 seconds. If this doesn't work, click here.

+

404

+

We couldn't find that :(

+

Maybe you were looking for one of these pages?

+ +

If you believe you reached this page in error, please contact us!

- - diff --git a/_layouts/default.html b/_layouts/default.html index 8bb12370..d21112fc 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -1,20 +1,11 @@ - - -{% include head.html %} - -
- {% include nav.html %} -
-
-
-
- {{ content }} -
-
- {% include footer.html %} -
-
- - {% include scripts.html %} - - +--- +layout: minimal +--- +
+
+ {{ content }} +
+
+ {% include footer.html %} +
+
diff --git a/_layouts/minimal.html b/_layouts/minimal.html new file mode 100644 index 00000000..1061dc36 --- /dev/null +++ b/_layouts/minimal.html @@ -0,0 +1,12 @@ + + +{% include head.html %} + +
+ {% include nav.html %} +
+
+ {{ content }} + {% include scripts.html %} + + diff --git a/assets/css/style.scss b/assets/css/style.scss index 50d26ad6..3b119a45 100644 --- a/assets/css/style.scss +++ b/assets/css/style.scss @@ -98,6 +98,10 @@ h2, h3:not(.h5), h4, h5 { margin-bottom: 1rem; } +.header-404 { + font-size: 10rem; +} + .anchor-icon { font-size: .8em; }