From a8295dedfa4ed943a9356fd19d0a06647d075f23 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Wed, 21 Aug 2024 00:46:31 +0200 Subject: Add a 404 page --- template/404.templ | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 template/404.templ (limited to 'template') 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) }} +
+ @navbar() +

{ p.T("Page Not Found") }

+
+
+

+ @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)) +

+
+} -- cgit v1.2.3