From b340559fb2ab8ffb38c05246b527cfbc5b6aceb0 Mon Sep 17 00:00:00 2001 From: conglinyizhi Date: Sun, 18 May 2025 01:55:07 +0800 Subject: [PATCH] feat(pages): Add 404 page and homepage description --- src/pages/404.astro | 26 ++++++++++++++++++++++++++ src/pages/index.astro | 3 +-- 2 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 src/pages/404.astro diff --git a/src/pages/404.astro b/src/pages/404.astro new file mode 100644 index 0000000..e7f5736 --- /dev/null +++ b/src/pages/404.astro @@ -0,0 +1,26 @@ +--- +import Layout from '../layouts/Layout.astro'; + +const url = new URL(Astro.url); +const notFoundPath = url.pathname +--- + + +

command not found.

+ +
+

sh: ~{notFoundPath}: command not found.

+ +
+ help +
+

+ Looks like this is an unknown command or file, try: +

+

+ Return to Home +

+
+
+
+
\ No newline at end of file diff --git a/src/pages/index.astro b/src/pages/index.astro index 79733f8..9b27c3b 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -3,9 +3,8 @@ import Layout from '../layouts/Layout.astro'; --- - +

~/

-
Not much here yet, but you can check out my blog posts here.