Files
halo-theme-whitespace/src/error/404.html
T
nxxy335 8e6dccbd09 feat: 插件适配页面与系统完善(v0.1.0)
- 修复 /categories、/tags 因变量为 List 误用 .items 导致的 500
- 新增 layout.html 布局契约,消除插件页面 fallback 警告
- 适配 plugin-moments / plugin-photos / plugin-links(含友链申请表单与 RSS 订阅页)
- 适配 halo-weread-plugin(书架页)、留言板单页模板
- 适配 plugin-extra-api 的代码高亮与暗色样式
- 修复暗黑模式评论区不可见(补充 color-scheme 与兜底样式)
- 更新元数据:作者暖心向阳335、版本 0.1.0、requires >=2.26.0
2026-09-28 16:50:09 +08:00

32 lines
938 B
HTML

<include src="partials/layout.html">
<template name="head">
<title th:text="|#{error.404.title} - ${site.title}|">404</title>
</template>
<div class="container">
<!-- 404 内容 -->
<div class="error-page">
<div class="error-code" th:text="${error.status != null ? error.status : 404}">
404
</div>
<h1 class="error-title" th:text="#{error.404.title}">Page not found</h1>
<p class="error-message" th:text="#{error.404.message}">
Sorry, the page you visited does not exist.
</p>
<div class="error-actions">
<a th:href="@{/}" class="error-btn" th:text="#{error.back.home}"
>Back to home</a
>
<button
type="button"
class="error-btn error-btn-secondary"
onclick="history.back()"
th:text="#{error.back.prev}"
>
Go back
</button>
</div>
</div>
</div>
</include>