|
@ -10,7 +10,7 @@ import ( |
|
|
func indexHandler(c web.C, w http.ResponseWriter, r *http.Request) { |
|
|
func indexHandler(c web.C, w http.ResponseWriter, r *http.Request) { |
|
|
indexTpl := pongo2.Must(pongo2.FromCache("templates/index.html")) |
|
|
indexTpl := pongo2.Must(pongo2.FromCache("templates/index.html")) |
|
|
|
|
|
|
|
|
err := indexTpl.ExecuteWriter(pongo2.Context{"sitename": Config.siteName}, w) |
|
|
|
|
|
|
|
|
err := indexTpl.ExecuteWriter(pongo2.Context{}, w) |
|
|
if err != nil { |
|
|
if err != nil { |
|
|
http.Error(w, err.Error(), http.StatusInternalServerError) |
|
|
http.Error(w, err.Error(), http.StatusInternalServerError) |
|
|
} |
|
|
} |
|
|