From aedd7bc5899467ff87675f3528ce62aff35f281b Mon Sep 17 00:00:00 2001 From: Atrox Date: Wed, 15 Jun 2016 14:33:51 +0200 Subject: [PATCH] Fix that custom sitename gets ignored --- templates.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates.go b/templates.go index 04b8436..0687bce 100644 --- a/templates.go +++ b/templates.go @@ -78,6 +78,8 @@ func renderTemplate(tpl *pongo2.Template, context pongo2.Context, r *http.Reques if Config.siteName == "" { parts := strings.Split(r.Host, ":") context["sitename"] = parts[0] + } else { + context["sitename"] = Config.siteName } context["sitepath"] = Config.sitePath