Allow deleting and recreating the homepage

This commit is contained in:
2026-11-28 02:06:27 +08:00
parent 268a278ec1
commit a0df3e60de
11 changed files with 31 additions and 27 deletions
+6 -2
View File
@@ -2,7 +2,11 @@
<div class="wrap">
<p class="overline">404</p>
<h1>页面未找到</h1>
<p>请检查网址,或回到首页浏览产品与服务。</p>
<a class="button button-primary" href="/">返回首页</a>
<?php if ($atHomepage): ?>
<p>当前没有可显示的首页。</p>
<?php else: ?>
<p>请检查网址,或返回首页。</p>
<a class="button button-primary" href="/">返回首页</a>
<?php endif ?>
</div>
</section>