config: rename files to better hint at what they’re used for
parent
b0a5e9a457
commit
e473f87e33
|
@ -14,9 +14,9 @@ func AboutHandler(app *App) http.HandlerFunc {
|
||||||
loggedIn := session.Values["user_id"] != nil
|
loggedIn := session.Values["user_id"] != nil
|
||||||
cookie, _ := r.Cookie("threadr_cookie_banner")
|
cookie, _ := r.Cookie("threadr_cookie_banner")
|
||||||
|
|
||||||
aboutContent, err := ioutil.ReadFile("config/about.template")
|
aboutContent, err := ioutil.ReadFile("config/about_page.htmlbody")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Printf("Error reading about.template: %v", err)
|
log.Printf("Error reading about_page.htmlbody: %v", err)
|
||||||
http.Error(w, "Internal Server Error", http.StatusInternalServerError)
|
http.Error(w, "Internal Server Error", http.StatusInternalServerError)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -43,4 +43,4 @@ func AboutHandler(app *App) http.HandlerFunc {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue