From 133046eebe1a0c1a9353939ddd77ba72cf4d064a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Kr=C3=BCger?= Date: Thu, 5 Feb 2026 19:55:17 +0100 Subject: [PATCH] feat: add custom 404 error page - Create stylish 404 page with glitch animation and CRT scanline effects - Update nginx to serve custom 404 instead of falling back to index.html - Page inherits site layout with WebGL background and audio player Co-Authored-By: Claude Opus 4.5 --- layouts/404.html | 147 +++++++++++++++++++++++++++++++++++++++++++++++ nginx.conf | 7 ++- 2 files changed, 152 insertions(+), 2 deletions(-) create mode 100644 layouts/404.html diff --git a/layouts/404.html b/layouts/404.html new file mode 100644 index 0000000..e4ac404 --- /dev/null +++ b/layouts/404.html @@ -0,0 +1,147 @@ +{{ define "main" }} + + +
+
+ +
+
+

404

+ +

+ Signal Lost +

+ + +
+
+{{ end }} diff --git a/nginx.conf b/nginx.conf index 061a431..e2f007a 100644 --- a/nginx.conf +++ b/nginx.conf @@ -29,9 +29,12 @@ server { add_header Cache-Control "no-store, no-cache, must-revalidate"; } - # Clean URLs - try files, then directories, then fallback to index.html + # Custom 404 page + error_page 404 /404.html; + + # Clean URLs - try files, then directories, then 404 location / { - try_files $uri $uri/ $uri.html /index.html; + try_files $uri $uri/ $uri.html =404; } # RSS feed