Fix the title
This commit is contained in:
@@ -33,7 +33,6 @@ func rootHandler(wr http.ResponseWriter, req *http.Request) {
|
||||
}
|
||||
|
||||
func articleHandler(wr http.ResponseWriter, req *http.Request) {
|
||||
title := "Pocetna"
|
||||
store, err := database.Connect()
|
||||
if err != nil {
|
||||
http.Error(wr, err.Error(), http.StatusInternalServerError)
|
||||
@@ -51,6 +50,7 @@ func articleHandler(wr http.ResponseWriter, req *http.Request) {
|
||||
http.Error(wr, err.Error(), http.StatusNotFound)
|
||||
}
|
||||
|
||||
title := article.Title
|
||||
data := map[string]interface{}{
|
||||
"title": title,
|
||||
"article": article,
|
||||
|
||||
Reference in New Issue
Block a user