diff options
author | Runxi Yu <me@runxiyu.org> | 2025-03-22 13:59:00 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-03-22 13:59:00 +0800 |
commit | 1f185f329bb82c87b250fb2312ae873d69a20d38 (patch) | |
tree | 892ad487e7e1154fcb71fbe05acf9e583592e96b /templates | |
parent | Variable name lengths (diff) | |
download | forge-1f185f329bb82c87b250fb2312ae873d69a20d38.tar.gz forge-1f185f329bb82c87b250fb2312ae873d69a20d38.tar.zst forge-1f185f329bb82c87b250fb2312ae873d69a20d38.zip |
Use a custom errPage500
Diffstat (limited to 'templates')
-rw-r--r-- | templates/500.tmpl | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/templates/500.tmpl b/templates/500.tmpl new file mode 100644 index 0000000..2fe66b8 --- /dev/null +++ b/templates/500.tmpl @@ -0,0 +1,25 @@ +{{/* + SPDX-License-Identifier: AGPL-3.0-only + SPDX-FileContributor: Runxi Yu <https://runxiyu.org> +*/}} +{{- define "500" -}} +<!DOCTYPE html> +<html lang="en"> + <head> + {{- template "head_common" . -}} + <title>500 Internal Server Error – {{ .global.forge_title }}</title> + </head> + <body class="500"> + {{- template "header" . -}} + <div class="padding-wrapper complete-error-page"> + <h1>500 Internal Server Error</h1> + <p>{{- .complete_error_msg -}}</p> + <hr /> + <address>Lindenii Forge</address> + </div> + <footer> + {{- template "footer" . -}} + </footer> + </body> +</html> +{{- end -}} |