mirror of
https://github.com/ZizzyDizzyMC/linx-server.git
synced 2026-01-23 10:16:37 +00:00
Fix that custom sitename gets ignored
This commit is contained in:
parent
f06b06fe76
commit
aedd7bc589
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue