aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryingyu5658 <i@yingyu5658.me>2026-01-24 21:30:57 +0800
committeryingyu5658 <i@yingyu5658.me>2026-01-24 21:30:57 +0800
commit5cefd3bab010446d8d367004012dfa8b91cc063d (patch)
treed6af0cf7350efa0531b1460170f9d21a7a906b26
parent3613c24ca29dad2fdb19bf02ae014140689c1286 (diff)
downloadblog-5cefd3bab010446d8d367004012dfa8b91cc063d.tar.gz
blog-5cefd3bab010446d8d367004012dfa8b91cc063d.zip
chore: update 404 page
-rw-r--r--layouts/404.html29
-rw-r--r--static/vercel.json4
2 files changed, 29 insertions, 4 deletions
diff --git a/layouts/404.html b/layouts/404.html
index 9ebac53..76d46d9 100644
--- a/layouts/404.html
+++ b/layouts/404.html
@@ -1,4 +1,29 @@
{{ define "title" }}404{{ end }} {{ define "main" }}
-<h1>404</h1>
-<p>你似乎来到了无人的岛屿。</p>
+<style>
+footer{display:none}
+.not-found {
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+ align-items: center;
+ height: 100vh;
+}
+
+.not-found * {
+ margin: 2rem;
+ line-height: 0;
+ }
+
+ h1 {
+ padding-bottom: 0.45em;
+ font-size: 5rem;
+ }
+
+</style>
+<div class="not-found">
+ <h1>🏝️</h1>
+ <h3>OHHHHH~
+ </h3>
+ <h3>Who lives in a pineapple under the sea?</h3>
+</div>
{{ end }}
diff --git a/static/vercel.json b/static/vercel.json
index bbbd8a0..6bcf614 100644
--- a/static/vercel.json
+++ b/static/vercel.json
@@ -123,8 +123,8 @@
{
"source": "/(.*)",
- "destination": "/index.html",
- "statusCode": 200
+ "destination": "/404.html",
+ "statusCode": 404
},
{