aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-03-21 22:38:01 +0800
committerRunxi Yu <me@runxiyu.org>2025-03-21 22:38:01 +0800
commite13bbd0c081e7918c23a84a79fdb842c6fe15a1f (patch)
tree6a30a4ef814613c52e614d0299ea576d944ed16b /templates
parentFix Is_file -> IsFile naming (diff)
downloadforge-e13bbd0c081e7918c23a84a79fdb842c6fe15a1f.tar.gz
forge-e13bbd0c081e7918c23a84a79fdb842c6fe15a1f.tar.zst
forge-e13bbd0c081e7918c23a84a79fdb842c6fe15a1f.zip
Add a "Proper" 404 page
Diffstat (limited to 'templates')
-rw-r--r--templates/404.tmpl24
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 &ndash; {{ .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 -}}