Skip to content

Commit

Permalink
feat: 添加异常页面
Browse files Browse the repository at this point in the history
  • Loading branch information
Waite0603 authored and AirboZH committed Sep 21, 2023
1 parent af90658 commit 6188ead
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions templates/error/error.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<!DOCTYPE html>
<html
xmlns:th="https://www.thymeleaf.org"
th:replace="~{modules/layout :: html(title = ${error.status} + ': ' + ${#strings.defaultString(error.title, 'Internal server error')} + ' - ' +${site.title},
content = ~{::content}, layout = 'default' ,breadcrumb = ~{::breadcrumb})}"
>
<th:block th:fragment="breadcrumb">
<span>
<a href="/">首页</a>
</span>
<span>[[${error.status} + ': ' + ${#strings.defaultString(error.title, 'Internal server error')}]]</span>
</th:block>
<th:block th:fragment="content">
<h1 data-toc-skip>
[[${error.status} + ': ' + ${#strings.defaultString(error.title, 'Internal
server error')}]]
</h1>

<div class="content">
<p class="lead">
Sorry, we have a slight error, please try again later.
<br />
Click <a href="/">here</a> to back home.
</p>
</div>
</th:block>
</html>

0 comments on commit 6188ead

Please sign in to comment.