From dda9a2645cdd2bd920e9f00d9550b51ce2d340a8 Mon Sep 17 00:00:00 2001 From: Erzbir Date: Sun, 16 Aug 2026 00:42:56 +0800 Subject: [PATCH] refactor: simplify error page markup --- templates/error/404.html | 21 +++++++++++---------- templates/error/5xx.html | 21 +++++++++++---------- templates/error/error.html | 21 +++++++++++---------- 3 files changed, 33 insertions(+), 30 deletions(-) diff --git a/templates/error/404.html b/templates/error/404.html index ad294ee..05b56d6 100644 --- a/templates/error/404.html +++ b/templates/error/404.html @@ -4,16 +4,17 @@ th:replace="~{modules/layout :: html(title = '404 - ' + ${site.title}, header = null, content = ~{::content}, footer = null)}" > -
-
-

404

-
-

-
- +
+
+

Error status

+
+
+

Error

+

Error detail

-
+ + Back to home page + + diff --git a/templates/error/5xx.html b/templates/error/5xx.html index 27ea9aa..8464894 100644 --- a/templates/error/5xx.html +++ b/templates/error/5xx.html @@ -4,16 +4,17 @@ th:replace="~{modules/layout :: html(title = '5xx - ' + ${site.title}, header = null, content = ~{::content}, footer = null)}" > -
-
-

5xx

-
-

-
- +
+
+

Error status

+
+
+

Error

+

Error detail

-
+ + Back to home page + + diff --git a/templates/error/error.html b/templates/error/error.html index 732d112..f197513 100644 --- a/templates/error/error.html +++ b/templates/error/error.html @@ -4,16 +4,17 @@ th:replace="~{modules/layout :: html(title = |#{page.error.title} - ${site.title}|, header = null, content = ~{::content}, footer = null)}" > -
-
-

5xx

-
-

-
- +
+
+

Error status

+
+
+

Error

+

Error detail

-
+ + Back to home page + +