diff --git a/routers/repo/dir.go b/routers/repo/dir.go index cdba538d7..a2fc07ae7 100755 --- a/routers/repo/dir.go +++ b/routers/repo/dir.go @@ -47,6 +47,8 @@ func DirIndex(ctx *context.Context) { return } } + + ctx.Data["Title"] = attachment.Name } files, err := ioutil.ReadDir(setting.Attachment.Minio.RealPath + setting.Attachment.Minio.Bucket + "/" + setting.Attachment.Minio.BasePath + @@ -86,7 +88,5 @@ func DirIndex(ctx *context.Context) { ctx.Data["Dirs"] = fileInfos - ctx.Data["Title"] = attachment.Name - ctx.HTML(200, tplDirIndex) }