Skip to content

Commit ff9c30d

Browse files
committed
update download
1 parent ddca355 commit ff9c30d

1 file changed

Lines changed: 15 additions & 14 deletions

File tree

content/pages/download.md

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,18 @@ draft = false
1717

1818
如果您已经是 Loong Arch Linux 用户,则无需下载新的 ISO 来更新现有系统。您可能正在寻找更新的[镜像列表](/pages/mirrorlist/)
1919

20-
## BitTorrent 下载(推荐)
20+
## HTTP 直接下载(推荐)
21+
22+
您可从以下镜像仓库下载iso:
23+
24+
<div>
25+
<ul id="ul_download">
26+
</ul>
27+
</div>
28+
29+
如果您为 Loong Arch Linux 提供了仓库镜像,请联系我们将其添加到这个列表中。
30+
31+
## BitTorrent 下载
2132

2233
如果您愿意,请在下载完成后保持客户端打开状态,以便您可以将其种子重新播种给其他人。
2334

@@ -53,17 +64,6 @@ $ docker pull ghcr.io/loongarchlinux/archlinux:latest
5364
- [https://mirrors.nju.edu.cn](https://mirrors.nju.edu.cn/loongarch/archlinux/images/)
5465
- [https://mirrors.iscas.ac.cn](https://mirrors.iscas.ac.cn/loongarch/archlinux/images/)
5566

56-
## HTTP 直接下载
57-
58-
您可从以下镜像仓库下载iso:
59-
60-
<div>
61-
<ul id="ul_download">
62-
</ul>
63-
</div>
64-
65-
如果您为 Loong Arch Linux 提供了仓库镜像,请联系我们将其添加到这个列表中。
66-
6767
<script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.4/jquery.min.js"></script>
6868
<script>
6969
function getfilesize(size) {
@@ -100,8 +100,9 @@ $ docker pull ghcr.io/loongarchlinux/archlinux:latest
100100
let mirror = result.mirrors[i];
101101
let uri = new URL(mirror);
102102
let url = uri.protocol + "//" + uri.host;
103-
let file = mirror + "/iso/" + result.version + "/" + result.iso_file;
104-
$li_url = $("<li><a href=\""+ file + "\" target=\"_blank\">"+ url +"</a></li>");
103+
let iso_file = mirror + "/iso/" + result.version + "/" + result.iso_file;
104+
let livecd_file = mirror + "/iso/" + result.version + "/" + result.livecd_file;
105+
$li_url = $("<li><a href='"+ mirror + "/iso/latest/' target='_blank'>"+ url +"</a>&nbsp;&nbsp;<a href='"+ iso_file +"' target='_blank'><img width='12' height='12' src='/images/download.png' alt=''/>ISO</a>&nbsp;&nbsp;<a href='" + livecd_file + "' target='_blank'><img width='12' height='12' src='/images/download.png' alt=''/>LiveCD</a></li>");
105106
$("#ul_download").append($li_url);
106107
}
107108
}

0 commit comments

Comments
 (0)