From f6dddd37f2c17e7f979cc272347dca2909579001 Mon Sep 17 00:00:00 2001 From: hitlerrip Date: Wed, 6 Aug 2025 04:32:01 +0000 Subject: 404 page - now generates a 404 page on build - nginx config now points to new 404 page --- build.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'build.sh') diff --git a/build.sh b/build.sh index bdb1f40..2cb89be 100755 --- a/build.sh +++ b/build.sh @@ -282,6 +282,16 @@ EOF done cd .. +echo "[build] creating 404 page..." +tee ./tmp/temp-404-page.html > /dev/null << EOF +

not found :(

+ This page does not exist on this server. Return home. +EOF +cat ./con/header.html \ + ./tmp/temp-404-page.html \ + ./con/footer.html \ + > ./web/404.html + echo "[build] copying static files..." cp ./con/style.css ./web/style.css cp ./con/icon.png ./web/icon.png -- cgit v1.2.3