all repos — website @ 1d247493e05cdc659e46cd3d8a01d5da1e893867

My website

switch to templ for rendering HTML templates

Alan Pearce
commit

1d247493e05cdc659e46cd3d8a01d5da1e893867

parent

a238c7e0889cbe7dfaa1a700dea30686a4e2139a

1 file changed, 13 insertions(+), 0 deletions(-)

changed files
A 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> + } +}