Refactored navbar and added error page

This commit is contained in:
2025-02-06 14:24:23 +11:00
parent 1c30007af4
commit 399cd43626
17 changed files with 409 additions and 115 deletions

View File

@@ -9,7 +9,7 @@ func HandleRoot() http.Handler {
return http.HandlerFunc(
func(w http.ResponseWriter, r *http.Request) {
if r.URL.Path != "/" {
http.NotFound(w, r)
page.Error("404", "Page not found", "The page or resource you have requested does not exist").Render(r.Context(), w)
return
}
page.Index().Render(r.Context(), w)