diff --git a/routers/hat/repo/file.go b/routers/hat/repo/file.go index 4be468a..d417542 100644 --- a/routers/hat/repo/file.go +++ b/routers/hat/repo/file.go @@ -149,6 +149,9 @@ func GetReadmeContents(ctx *context.APIContext) { if strings.ToLower(file.Name) == "readme_zh.md" { readmezhPath = file.Name } + if strings.ToLower(file.Name) == "readme" { + readmePath = file.Name + } } } @@ -202,6 +205,9 @@ func GetReadmeContentsByPath(ctx *context.APIContext) { if strings.ToLower(file.Name) == "readme_zh.md" { readmezhPath = file.Name } + if strings.ToLower(file.Name) == "readme" { + readmePath = file.Name + } } }