tongong.net

personal website
git clone https://tongong.net/git/tongong.net.git
Log | Files | Refs

commit fcbdff43c893988ccd93fc3c247c39db2e5a121c
parent de9c19491f94f21296f8056c93362114f3ce9323
Author: tongong <tongong@gmx.net>
Date:   Mon, 19 Dec 2022 14:46:07 +0100

added 404 page

Diffstat:
Mbuild.js | 2+-
Acontent/404.html | 2++
2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/build.js b/build.js @@ -42,7 +42,7 @@ function get_pages(entry_path) { } // list of paths -const pages = get_pages("content"); +const pages = [...get_pages("content"), "content/404.html"]; const template = std.loadFile("template/dist/index.html"); diff --git a/content/404.html b/content/404.html @@ -0,0 +1,2 @@ +<h1>404 - page not found</h1> +<p>That's unfortunate.</p>