Files
halo-theme-WarmIsland/public/error/500.html
T
nxxy335 430d107d44 feat: 完善主题功能并适配插件 (v1.1.5)
功能新增
- 新增页面布局契约 templates/layout.html,插件前台页面可复用主题外观,避免回退到 Halo fallback 布局
- 新增微信读书页面模板 (weread.html),集成 halo-weread-plugin 书架
- 新增订阅页面模板 (page_subscriptions.html)
- 新增欢迎弹窗组件(IP 地理定位,多 API 容错)
- 新增点击特效组件(9 种效果)
- 页脚新增全站统计,支持开关与统计项配置,默认开启

插件适配
- 适配 extra-api:文章字数改服务端统计、正文可选中英混排与服务端代码高亮
- 修正各页面插件应用市场链接与插件名

修复
- 修复文章正文图片/视频无法居中(正文样式移至全局,scoped 样式对 Thymeleaf 注入内容无效)
- 修复正文 H1-H6 字号过大,重排层级与移动端断点
- 修复 th: 属性中文字符串缺少引号导致的 Thymeleaf 解析异常(/links、/moments 500)
- 修复 JS 内联表达式与 Thymeleaf 内联语法冲突,全部内联脚本加 th:inline="none"
- 修复移除 i18n 后 steam 页 Elvis 表达式回归问题
- 修正订阅页 th:attr 引号嵌套错误

优化
- Hero 移除灰色遮罩,下滑箭头改为可点击平滑滚动
- 优化目录样式:移除圆点与下拉箭头,支持两行显示,修复长目录截断
- 移除 i18n 多语言支持

清理
- 移除未使用的 Vue/图标依赖与废弃脚本、重复资源
2026-09-26 11:18:52 +08:00

131 lines
3.0 KiB
HTML

<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<script>
(function () {
var stored = localStorage.getItem("wi-theme");
var prefersDark = window.matchMedia("(prefers-color-scheme: dark)").matches;
var isDark = stored === "dark" || (!stored && prefersDark);
if (isDark) {
document.documentElement.classList.add("dark");
}
})();
</script>
<title>服务器开小差了 - 暖屿</title>
<style>
:root {
--bg: #faf7f2;
--ink: #2c2420;
--ink-2: #7a6e64;
--accent: #d4764e;
--accent-hover: #c4613a;
}
html.dark {
--bg: #1a1614;
--ink: #ede6de;
--ink-2: #9a8e84;
--accent: #e8955f;
--accent-hover: #f0a872;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans SC", sans-serif;
background: var(--bg);
color: var(--ink);
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
}
.wi-error {
text-align: center;
padding: 2rem;
}
.wi-error__code {
font-size: 8rem;
font-weight: 800;
line-height: 1;
color: var(--accent);
opacity: 0.3;
letter-spacing: -0.04em;
}
.wi-error__title {
font-size: 1.5rem;
font-weight: 700;
margin-top: 1rem;
letter-spacing: -0.02em;
}
.wi-error__desc {
color: var(--ink-2);
margin-top: 0.75rem;
font-size: 1rem;
}
.wi-error__actions {
display: flex;
gap: 0.75rem;
justify-content: center;
margin-top: 2rem;
}
.wi-error__home {
display: inline-block;
padding: 0.625rem 1.5rem;
background: var(--accent);
color: #fff;
border-radius: 9999px;
text-decoration: none;
font-weight: 600;
font-size: 0.9375rem;
transition: background 0.15s ease;
}
.wi-error__home:hover {
background: var(--accent-hover);
}
.wi-error__back {
display: inline-block;
padding: 0.625rem 1.5rem;
background: transparent;
color: var(--ink-2);
border: 1px solid var(--ink-2);
border-radius: 9999px;
text-decoration: none;
font-weight: 600;
font-size: 0.9375rem;
transition: color 0.15s ease, border-color 0.15s ease;
}
.wi-error__back:hover {
color: var(--accent);
border-color: var(--accent);
}
</style>
</head>
<body>
<div class="wi-error">
<p class="wi-error__code">500</p>
<h1 class="wi-error__title">服务器开小差了</h1>
<p class="wi-error__desc">小岛遇到了一些问题,稍后再来看看吧</p>
<div class="wi-error__actions">
<a class="wi-error__home" href="/">回到首页</a>
<a class="wi-error__back" href="javascript:history.back()">返回上页</a>
</div>
</div>
</body>
</html>