flounder

A simple gemini site builder
Log | Files | Refs | README | LICENSE

commit cb23e53f2726985ddb5ff7d839c743ac9c31e19f
parent 652babefefeb3473365809a8a13bf425472303c7
Author: alex wennerberg <alex@alexwennerberg.com>
Date:   Fri,  8 Jan 2021 00:34:57 -0800

fix

Diffstat:
Mhttp.go | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/http.go b/http.go @@ -33,8 +33,9 @@ func renderError(w http.ResponseWriter, errorMsg string, statusCode int) { data := struct { StatusCode int ErrorMsg string - }{statusCode, errorMsg} - err := t.ExecuteTemplate(w, "error.html", data) + Config Config + }{statusCode, errorMsg, c} + err := t.ExecuteTemplate(w, "error.html", c) if err != nil { // Shouldn't happen probably http.Error(w, errorMsg, statusCode) }