更改:readme无后缀也显示
This commit is contained in:
parent
12416d75df
commit
65171d0bf7
|
@ -149,6 +149,9 @@ func GetReadmeContents(ctx *context.APIContext) {
|
||||||
if strings.ToLower(file.Name) == "readme_zh.md" {
|
if strings.ToLower(file.Name) == "readme_zh.md" {
|
||||||
readmezhPath = file.Name
|
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" {
|
if strings.ToLower(file.Name) == "readme_zh.md" {
|
||||||
readmezhPath = file.Name
|
readmezhPath = file.Name
|
||||||
}
|
}
|
||||||
|
if strings.ToLower(file.Name) == "readme" {
|
||||||
|
readmePath = file.Name
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue