diff options
Diffstat (limited to 'templates/error.templ')
-rw-r--r-- | templates/error.templ | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/templates/error.templ b/templates/error.templ new file mode 100644 index 0000000..2da7bef --- /dev/null +++ b/templates/error.templ @@ -0,0 +1,17 @@ +package templates + +import ( + "website/internal/config" + "website/internal/http" + "strconv" +) + +templ Error(config config.Config, path string, err *http.Error) { + @Page(config, PageSettings{ + Title: "Error", + Path: path, + }) { + <h1>{ strconv.Itoa(err.Code) } { err.Message }</h1> + <h2>ʕノ•ᴥ•ʔノ ︵ ┻━┻</h2> + } +} |