summaryrefslogtreecommitdiffhomepage
path: root/template
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-08-21 00:46:31 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-08-21 00:46:31 +0200
commita8295dedfa4ed943a9356fd19d0a06647d075f23 (patch)
tree7821e348dd739a49eff93c13d26cdea8bee50652 /template
parent846aab9ffc5d19672faf6992375512d44da880c7 (diff)
Add a 404 page
Diffstat (limited to 'template')
-rw-r--r--template/404.templ16
1 files changed, 16 insertions, 0 deletions
diff --git a/template/404.templ b/template/404.templ
new file mode 100644
index 0000000..9a03b43
--- /dev/null
+++ b/template/404.templ
@@ -0,0 +1,16 @@
+package template
+
+import "git.thomasvoss.com/euro-cash.eu/lib"
+
+templ NotFound() {
+ {{ p := ctx.Value("printer").(lib.Printer) }}
+ <header>
+ @navbar()
+ <h1>{ p.T("Page Not Found") }</h1>
+ </header>
+ <main>
+ <p>
+ @templ.Raw(p.T("The page you were looking for does not exist. If you believe this is a mistake then don’t hesitate to contact @onetruemangoman on Discord or to email us at %s.", contactEmail))
+ </p>
+ </main>
+}