chore: 404-page path more accurate variable
This commit is contained in:
parent
47bcb9a158
commit
819bd91231
1 changed files with 2 additions and 2 deletions
|
@ -1,14 +1,14 @@
|
||||||
---
|
---
|
||||||
import Layout from '../layouts/Layout.astro';
|
import Layout from '../layouts/Layout.astro';
|
||||||
|
|
||||||
const url = Astro.url.pathname
|
const notFoundPath = Astro.url.pathname
|
||||||
---
|
---
|
||||||
|
|
||||||
<Layout title="404" description="Page not found">
|
<Layout title="404" description="Page not found">
|
||||||
<h1 class="title">command not found.</h1>
|
<h1 class="title">command not found.</h1>
|
||||||
|
|
||||||
<div class="content">
|
<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;">
|
<div style="margin-top: 2rem;">
|
||||||
<span class="command">help</span>
|
<span class="command">help</span>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue