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