chore: 404-page path more accurate variable

This commit is contained in:
grassblock 2025-05-19 11:40:55 +08:00
parent 47bcb9a158
commit 819bd91231

View file

@ -1,14 +1,14 @@
---
import Layout from '../layouts/Layout.astro';
const url = Astro.url.pathname
const notFoundPath = Astro.url.pathname
---
<Layout title="404" description="Page not found">
<h1 class="title">command not found.</h1>
<div class="content">
<p class="typewriter">sh: <span class="path">~{url}</span>: command not found.</p>
<p class="typewriter">sh: <span class="path">~{notFoundPath}</span>: command not found.</p>
<div style="margin-top: 2rem;">
<span class="command">help</span>