From dbe6f2aaab0d0fcc5476cd5e601c677b17376b9a Mon Sep 17 00:00:00 2001 From: Roozen <93673944+Roozenlz@users.noreply.github.com> Date: Sat, 12 Aug 2023 11:10:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0500=E9=A1=B5=E9=9D=A2=20(#412?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- settings.yaml | 19 +++++++++++--- templates/error/500.html | 55 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 70 insertions(+), 4 deletions(-) create mode 100644 templates/error/500.html diff --git a/settings.yaml b/settings.yaml index cc628ed3..a8ea9968 100644 --- a/settings.yaml +++ b/settings.yaml @@ -2660,17 +2660,28 @@ spec: name: error_404 label: 404 页面 value: - subtitle: - background: + subtitle: 请尝试站内搜索寻找文章 + background: /themes/theme-hao/assets/images/404s.gif + children: + - $formkit: text + name: subtitle + label: 标题 + - $formkit: attachment + name: background + label: 背景 + - $formkit: group + name: error_500 + label: 500 页面 + value: + subtitle: 服务器内部出现错误,请查看日志 + background: /themes/theme-hao/assets/images/404s.gif children: - $formkit: text name: subtitle label: 标题 - value: 请尝试站内搜索寻找文章 - $formkit: attachment name: background label: 背景 - value: /themes/theme-hao/assets/images/404s.gif - $formkit: radio name: bubbleEnable label: 页面卡片顶部气泡升起效果 diff --git a/templates/error/500.html b/templates/error/500.html new file mode 100644 index 00000000..70703139 --- /dev/null +++ b/templates/error/500.html @@ -0,0 +1,55 @@ + + + + + +
+
+ + +
+ +
+
+
+
+
+
+

500

+
[[${theme.config.other.error_500.subtitle}]]
+ 回到主页 +
+
+
+ + +
+ +
+ +
+ + +
+
+ + \ No newline at end of file