From 7d1bd7883d7541f620e24ba586c2daa619d45f54 Mon Sep 17 00:00:00 2001 From: sakrecoer Date: Wed, 7 Oct 2020 15:52:50 +0200 Subject: [PATCH] make 404 funcitonal on any URL --- 404.html | 4 +- _layouts/404page.html | 133 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 134 insertions(+), 3 deletions(-) create mode 100644 _layouts/404page.html diff --git a/404.html b/404.html index 28438f2..661a997 100644 --- a/404.html +++ b/404.html @@ -1,5 +1,5 @@ --- -layout: default +layout: 404page title: Error 404 This is not a page description: The page you are looking for has moved to the darknet. image: /images/pages/creds.jpg @@ -7,5 +7,3 @@ video_path: /videos/37th--chamber.mp4 permalink: /404/ sitemap: false --- - -{% include header.html %} \ No newline at end of file diff --git a/_layouts/404page.html b/_layouts/404page.html new file mode 100644 index 0000000..25f478c --- /dev/null +++ b/_layouts/404page.html @@ -0,0 +1,133 @@ +--- +layout: nil +--- + + + + +{% include seo.html %} + + + + + + + + + + + + + + + + + + + +
+ + +
+
+

{{ page.title }}

+
+
+ +
+ +

{{ page.title }}

+

{{ page.description }}

+ {% if page.category == 'releases' %} +

🔊 Listen

+ {% elsif page.category == 'highlights' %} +

👀 Read

+ {% elsif page.url == '/404/' %} +

🏡 Take me home

+ {% elsif page.url == '/about/' %} +

👽 Saywhat?

+ {% else %} +

🔥 Boom

+ {% endif %} +
+
+ + + + +
+ +
+
+ {{ content }} +
+
+ + +{% unless page.collection == 'tracks' or page.url == '/radio/' %} + +
+
+
+

{{ site.title }}

+

{{ site.description }}

+ +
+ +
{{ site.title }} Logo
+ + +
+ {% for nw in site.data.social %} + {{ nw.name }} + {% endfor %} + Email +
+

©{{ site.time | date: '%Y' }} {{ site.publisher.name }} | Credits | + Cookies & Privacy +
This page was last updated on {{ page.last_modified_at | date: "%A, %b %d, %Y" }}

+
+
+
+{% endunless %} + + + + +
+ +{% unless page.collection == 'tracks' %} +{% include navigation.html %} +{% endunless %} +{% include cookie-consent.html %} +{% include scripts.html %} +{% if page.video_path %} +
+ +
+{% endif %} + + +