File tree 2 files changed +8
-3
lines changed
2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ func (self DownloadController) RegisterRoute(g *echo.Group) {
36
36
func (DownloadController ) GoDl (ctx echo.Context ) error {
37
37
downloads := logic .DefaultDownload .FindAll (context .EchoContext (ctx ))
38
38
39
- featured := make ([]* model.Download , 0 , 4 )
39
+ featured := make ([]* model.Download , 0 , 5 )
40
40
stables := make (map [string ][]* model.Download )
41
41
stableVersions := make ([]string , 0 , 2 )
42
42
unstables := make (map [string ][]* model.Download )
@@ -52,7 +52,7 @@ func (DownloadController) GoDl(ctx echo.Context) error {
52
52
}
53
53
stables [version ] = append (stables [version ], download )
54
54
55
- if download .IsRecommend && len (featured ) < 4 {
55
+ if download .IsRecommend && len (featured ) < 5 {
56
56
featured = append (featured , download )
57
57
}
58
58
} else if download .Category == model .DLUnstable {
Original file line number Diff line number Diff line change @@ -36,10 +36,15 @@ <h3 id="featured">推荐下载 <a class="permalink" href="#featured">¶</a></h3>
36
36
< div class ="reqs "> Windows 7 or later, Intel 64-bit 处理器</ div >
37
37
{{else if eq .OS "Linux"}}
38
38
< div class ="platform "> Linux</ div >
39
- < div class ="reqs "> Linux 2.6.23 or later, Intel 64-bit 处理器</ div >
39
+ < div class ="reqs "> Linux 2.6.32 or later, Intel 64-bit 处理器</ div >
40
40
{{else if eq .OS "macOS"}}
41
41
< div class ="platform "> Apple macOS</ div >
42
+ {{if eq .Arch "x86-64"}}
42
43
< div class ="reqs "> macOS 10.13 or later, Intel 64-bit 处理器</ div >
44
+ {{else}}
45
+ < div class ="reqs "> macOS 11 or later, Apple 64-bit 处理器</ div >
46
+ {{end}}
47
+
43
48
{{else}}
44
49
< div class ="platform "> 源码</ div >
45
50
{{end}}
You can’t perform that action at this time.
0 commit comments