diff --git a/modules/template/template.go b/modules/template/template.go
index 712185576c..8d602760ad 100644
--- a/modules/template/template.go
+++ b/modules/template/template.go
@@ -25,6 +25,9 @@ var Funcs template.FuncMap = map[string]interface{}{
"GoVer": func() string {
return strings.Title(runtime.Version())
},
+ "Protocol": func() string {
+ return string(setting.Protocol)
+ },
"AppName": func() string {
return setting.AppName
},
diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl
index ea0778328b..4069eff384 100644
--- a/templates/repo/home.tmpl
+++ b/templates/repo/home.tmpl
@@ -18,7 +18,7 @@
{{end}}