#109 move last url to new layout*A
All checks were successful
Build Docker Image / Explore-Gitea-Actions (push) Successful in 1m6s

This commit is contained in:
Tim
2024-08-24 19:33:22 +02:00
parent 148d064858
commit bba3aee626
9 changed files with 40 additions and 43 deletions

View File

@@ -11,6 +11,7 @@ func HandleIndexAnd404(w http.ResponseWriter, r *http.Request) {
var comp templ.Component = nil
if r.URL.Path != "/" {
comp = templates.Layout(templates.NotFound())
w.WriteHeader(http.StatusNotFound)
} else {
comp = templates.Layout(templates.Index())
}