diff options
author | Runxi Yu <me@runxiyu.org> | 2025-03-21 22:38:01 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-03-21 22:38:01 +0800 |
commit | e13bbd0c081e7918c23a84a79fdb842c6fe15a1f (patch) | |
tree | 6a30a4ef814613c52e614d0299ea576d944ed16b /templates | |
parent | Fix Is_file -> IsFile naming (diff) | |
download | forge-e13bbd0c081e7918c23a84a79fdb842c6fe15a1f.tar.gz forge-e13bbd0c081e7918c23a84a79fdb842c6fe15a1f.tar.zst forge-e13bbd0c081e7918c23a84a79fdb842c6fe15a1f.zip |
Add a "Proper" 404 page
Diffstat (limited to 'templates')
-rw-r--r-- | templates/404.tmpl | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/templates/404.tmpl b/templates/404.tmpl new file mode 100644 index 0000000..c994e1a --- /dev/null +++ b/templates/404.tmpl @@ -0,0 +1,24 @@ +{{/* + SPDX-License-Identifier: AGPL-3.0-only + SPDX-FileContributor: Runxi Yu <https://runxiyu.org> +*/}} +{{- define "404" -}} +<!DOCTYPE html> +<html lang="en"> + <head> + {{- template "head_common" . -}} + <title>404 Not Found – {{ .global.forge_title }}</title> + </head> + <body class="404"> + {{- template "header" . -}} + <div class="padding-wrapper complete-error-page"> + <h1>404 Not Found</h1> + <hr /> + <address>Lindenii Forge</address> + </div> + <footer> + {{- template "footer" . -}} + </footer> + </body> +</html> +{{- end -}} |