mirror of
https://github.com/gojp/goreportcard.git
synced 2026-01-28 22:39:05 +08:00
enable toggle menu and fix missing footer in 404 page
This commit is contained in:
@@ -8,7 +8,7 @@ import (
|
||||
func errorHandler(w http.ResponseWriter, r *http.Request, status int) {
|
||||
w.WriteHeader(status)
|
||||
if status == http.StatusNotFound {
|
||||
t := template.Must(template.New("404.html").ParseFiles("templates/404.html", "templates/footer.html"))
|
||||
t := template.Must(template.New("404.html").Delims("[[", "]]").ParseFiles("templates/404.html", "templates/footer.html"))
|
||||
t.Execute(w, nil)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user