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