all repos — homestead @ 7c9ce0ed7f5058db65a13c036857cd7c32a5464b

Code for my website

move templ templates into separate package

Alan Pearce
commit

7c9ce0ed7f5058db65a13c036857cd7c32a5464b

parent

415059cadd06ea235091cc4e78f585d52fea9f04

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

changed files
A templates/404.templ
@@ -0,0 +1,13 @@
+package templates + +import "website/internal/config" + +templ NotFound(config config.Config, path string) { + @Page(config, PageSettings{ + Title: "Not Found", + Path: path, + }) { + <h1>404</h1> + <h2>ʕノ•ᴥ•ʔノ ︵ ┻━┻</h2> + } +}