about summary refs log tree commit diff stats
path: root/internal/builder/404.templ
diff options
context:
space:
mode:
authorAlan Pearce2024-06-18 16:46:22 +0200
committerAlan Pearce2024-06-18 16:46:22 +0200
commit1d247493e05cdc659e46cd3d8a01d5da1e893867 (patch)
tree221e9ee2f5e3f171dfd937f04fae7ad6a33588d8 /internal/builder/404.templ
parenta238c7e0889cbe7dfaa1a700dea30686a4e2139a (diff)
downloadwebsite-1d247493e05cdc659e46cd3d8a01d5da1e893867.tar.lz
website-1d247493e05cdc659e46cd3d8a01d5da1e893867.tar.zst
website-1d247493e05cdc659e46cd3d8a01d5da1e893867.zip
switch to templ for rendering HTML templates
Diffstat (limited to 'internal/builder/404.templ')
-rw-r--r--internal/builder/404.templ13
1 files changed, 13 insertions, 0 deletions
diff --git a/internal/builder/404.templ b/internal/builder/404.templ
new file mode 100644
index 0000000..049e67d
--- /dev/null
+++ b/internal/builder/404.templ
@@ -0,0 +1,13 @@
+package builder
+
+import "website/internal/config"
+
+templ notFound(config config.Config, path string) {
+	@page(config, PageSettings{
+		Title: "Not Found",
+		Path:  path,
+	}) {
+		<h1>404</h1>
+		<h2>ʕノ•ᴥ•ʔノ ︵ ┻━┻</h2>
+	}
+}