From dbff59d42e43c5292816da7e3524b62d10c825a8 Mon Sep 17 00:00:00 2001 From: Helen Chong <119173961+helenclx@users.noreply.github.com> Date: Sat, 1 Jun 2024 08:51:34 +0800 Subject: [PATCH] Recreate Not Found page for Neocities --- src/404.njk | 10 +--------- src/_includes/misc/404.njk | 12 ++++++++++++ src/not_found.njk | 5 +++++ 3 files changed, 18 insertions(+), 9 deletions(-) create mode 100644 src/_includes/misc/404.njk create mode 100644 src/not_found.njk diff --git a/src/404.njk b/src/404.njk index d530f7b3..8844d990 100644 --- a/src/404.njk +++ b/src/404.njk @@ -1,13 +1,5 @@ --- -layout: misc/base -title: "404: Page Not Found" -h1: "404: Page Not Found" -eleventyExcludeFromCollections: true permalink: /404.html --- -

Oops! Either the page you are looking for does not exist, or it has been moved to a diffrent part of this site.

- -
- 🏠 Back to Home -
\ No newline at end of file +{% include "misc/404.njk" %} \ No newline at end of file diff --git a/src/_includes/misc/404.njk b/src/_includes/misc/404.njk new file mode 100644 index 00000000..493fdc8b --- /dev/null +++ b/src/_includes/misc/404.njk @@ -0,0 +1,12 @@ +--- +layout: misc/base +title: "404: Page Not Found" +h1: "404: Page Not Found" +eleventyExcludeFromCollections: true +--- + +

Oops! Either the page you are looking for does not exist, or it has been moved to a diffrent part of this site.

+ +
+ 🏠 Back to Home +
\ No newline at end of file diff --git a/src/not_found.njk b/src/not_found.njk new file mode 100644 index 00000000..93756233 --- /dev/null +++ b/src/not_found.njk @@ -0,0 +1,5 @@ +--- +permalink: /not_found.html +--- + +{% include "misc/404.njk" %} \ No newline at end of file