返回 DeepSeek-Reasonix
404.astro
根目录 / site / src / pages / 404.astro
1 ---
2 import Base from '../layouts/Base.astro';
3 import SiteHeader from '../components/SiteHeader.astro';
4 const base = import.meta.env.BASE_URL.replace(/\/$/, '');
5 ---
6 <Base
7 title="Page not found — Reasonix"
8 titleEn="Page not found — Reasonix"
9 titleZh="页面不存在 — Reasonix"
10 description="The page you are looking for does not exist.">
11
12 <Fragment slot="head"><meta name="robots" content="noindex" /></Fragment>
13
14 <script is:inline>
15 // Preserve the documented /u/<handle> shape on static hosting by moving it
16 // to the client-rendered public profile page.
17 try {
18 const match = location.pathname.match(/^\/u\/([^/]+)\/?$/);
19 if (match) location.replace(`/u/?handle=${encodeURIComponent(decodeURIComponent(match[1]))}`);
20 } catch {}
21 </script>
22
23 <SiteHeader scrolled />
24
25 <main class="hero" style="padding-bottom:150px">
26 <div class="wrap">
27 <div class="eyebrow">404</div>
28 <h1><span class="l-en">This page went <span class="grad">cold.</span></span><span class="l-zh">这一页<span class="grad">冷掉了</span>。</span></h1>
29 <p class="sub"><span class="l-en">The page you're looking for doesn't exist — but the session is still warm.</span><span class="l-zh">你找的页面不存在——但会话还热着。</span></p>
30 <div class="cold-blocks" aria-hidden="true"><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i class="new"></i></div>
31 <div class="hero-cta">
32 <a class="btn btn-dark" href={`${base}/`}><span class="l-en">Back to home</span><span class="l-zh">回到首页</span></a>
33 <a class="btn btn-ghost" href={`${base}/docs/`}><span class="l-en">Read the docs</span><span class="l-zh">查看文档</span></a>
34 </div>
35 </div>
36 </main>
37 </Base>
38
38 lines Plain Text