summaryrefslogtreecommitdiff
path: root/404.php
diff options
context:
space:
mode:
authorEltrac Koalar <hi@guhub.cn>2022-08-22 19:26:16 +0800
committerEltrac Koalar <hi@guhub.cn>2022-08-22 19:26:16 +0800
commit1b6ca0715f2b8db0dc3ac8ce9288f87ec2e03ad9 (patch)
treec9b40b8c06e2e900b0bd3b669d710946ecca279b /404.php
parentcb75d1fa2e4366708434a80a500584a7dac23db0 (diff)
:dizzy_face: Add: 全新的 404 页面
Diffstat (limited to '404.php')
-rw-r--r--404.php22
1 files changed, 9 insertions, 13 deletions
diff --git a/404.php b/404.php
index cd26ec4..7a34004 100644
--- a/404.php
+++ b/404.php
@@ -1,16 +1,12 @@
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<?php $this->need('includes/header.php'); ?>
-
- <div class="col-mb-12 col-tb-8 col-tb-offset-2">
-
- <div class="error-page">
- <h2 class="post-title">404 - <?php _e('页面没找到'); ?></h2>
- <p><?php _e('你想查看的页面已被转移或删除了, 要不要搜索看看: '); ?></p>
- <form method="post">
- <p><input type="text" name="s" class="text" autofocus /></p>
- <p><button type="submit" class="submit"><?php _e('搜索'); ?></button></p>
- </form>
+ <div class="error-page">
+ <object width="200" height="200" class="error-img" data="<?php Utils::indexTheme('assets/404.svg'); ?>" type="image/svg+xml"></object>
+ <div class="error-info">
+ <h1 class="error-404"><?php _e('404'); ?></h1>
+ <h2 class="error-title"><?php _e('页面... 我页面呢?'); ?></h2>
+ <p>我那么大一个页面怎么不见了?</p>
+ <a href="<?php Utils::indexHome() ?>">返回首页</a>
</div>
-
- </div><!-- end #content-->
- <?php $this->need('includes/footer.php'); ?>
+ </div>
+<?php $this->need('includes/footer.php'); ?>