Browse Source

Merge pull request #87 from Atrox/sitename

Fix that custom sitename gets ignored
pull/93/head
Andrei Marcu 9 years ago
committed by GitHub
parent
commit
30d2d63466
  1. 2
      templates.go

2
templates.go

@ -78,6 +78,8 @@ func renderTemplate(tpl *pongo2.Template, context pongo2.Context, r *http.Reques
if Config.siteName == "" { if Config.siteName == "" {
parts := strings.Split(r.Host, ":") parts := strings.Split(r.Host, ":")
context["sitename"] = parts[0] context["sitename"] = parts[0]
} else {
context["sitename"] = Config.siteName
} }
context["sitepath"] = Config.sitePath context["sitepath"] = Config.sitePath

Loading…
Cancel
Save