|
@@ -30,7 +30,11 @@ const (
|
|
)
|
|
)
|
|
|
|
|
|
func Home(ctx *context.Context) {
|
|
func Home(ctx *context.Context) {
|
|
- ctx.Data["Title"] = ctx.Repo.Repository.Owner.Name + "/" + ctx.Repo.Repository.Name + ": " + ctx.Repo.Repository.Description
|
|
|
|
|
|
+ title := ctx.Repo.Repository.Owner.Name + "/" + ctx.Repo.Repository.Name
|
|
|
|
+ if len(ctx.Repo.Repository.Description) > 0 {
|
|
|
|
+ title += ": " + ctx.Repo.Repository.Description
|
|
|
|
+ }
|
|
|
|
+ ctx.Data["Title"] = title
|
|
ctx.Data["PageIsViewCode"] = true
|
|
ctx.Data["PageIsViewCode"] = true
|
|
ctx.Data["RequireHighlightJS"] = true
|
|
ctx.Data["RequireHighlightJS"] = true
|
|
|
|
|