更改:readme无后缀也显示

This commit is contained in:
yystopf 2023-03-15 17:59:02 +08:00
parent 12416d75df
commit 65171d0bf7
1 changed files with 6 additions and 0 deletions

View File

@ -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
}
}
}