Recreate Not Found page for Neocities

This commit is contained in:
Helen Chong 2024-06-01 08:51:34 +08:00
parent e8a6dcd554
commit dbff59d42e
3 changed files with 18 additions and 9 deletions

View File

@ -1,13 +1,5 @@
--- ---
layout: misc/base
title: "404: Page Not Found"
h1: "404: Page Not Found"
eleventyExcludeFromCollections: true
permalink: /404.html permalink: /404.html
--- ---
<p>Oops! Either the page you are looking for does not exist, or it has been moved to a diffrent part of this site.</p> {% include "misc/404.njk" %}
<section class="index__btn-wrapper">
<a href="/" class="index__link">🏠 Back to Home</a>
</section>

View File

@ -0,0 +1,12 @@
---
layout: misc/base
title: "404: Page Not Found"
h1: "404: Page Not Found"
eleventyExcludeFromCollections: true
---
<p>Oops! Either the page you are looking for does not exist, or it has been moved to a diffrent part of this site.</p>
<section class="index__btn-wrapper">
<a href="/" class="index__link">🏠 Back to Home</a>
</section>

5
src/not_found.njk Normal file
View File

@ -0,0 +1,5 @@
---
permalink: /not_found.html
---
{% include "misc/404.njk" %}