chore: add error.html

This commit is contained in:
Erzbir
2025-12-03 14:21:58 +08:00
parent b04b407f7f
commit e4cdb1491b
+19
View File
@@ -0,0 +1,19 @@
<!doctype html>
<html
xmlns:th="https://www.thymeleaf.org"
th:replace="~{modules/layout :: html(title = 'Error - ' + ${site.title}, header = null, content = ~{::content}, footer = null)}"
>
<th:block th:fragment="content">
<div class="content">
<div class="post">
<h1 class="post-title" th:text="${error.title}">5xx</h1>
<div class="post-content">
<p th:text="${error?.detail}"></p>
</div>
<button th:onclick="'location.href=\'' + @{/} + '\''" th:text="#{page.error.back}">
Back to home page
</button>
</div>
</div>
</th:block>
</html>