1
0
Fork 0
forked from forgejo/forgejo

clone in ssh

This commit is contained in:
slene 2014-03-17 18:13:07 +08:00
parent df1985e1e8
commit 26f9962b6e
6 changed files with 60 additions and 43 deletions

View file

@ -18,6 +18,7 @@ import (
var (
AppVer string
AppName string
Domain string
Cfg *goconfig.ConfigFile
)
@ -58,4 +59,5 @@ func init() {
Cfg.BlockMode = false
AppName = Cfg.MustValue("", "APP_NAME")
Domain = Cfg.MustValue("server", "DOMAIN")
}

View file

@ -19,6 +19,9 @@ var TemplateFuncs template.FuncMap = map[string]interface{}{
"AppVer": func() string {
return AppVer
},
"AppDomain": func() string {
return Domain
},
"AvatarLink": AvatarLink,
"str2html": Str2html,
"TimeSince": TimeSince,