enable toggle menu and fix missing footer in 404 page

This commit is contained in:
xuri
2021-01-24 13:57:18 +08:00
parent 232d912e51
commit 222063399a
7 changed files with 141 additions and 15 deletions

View File

@@ -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)
}
}