Update index.html

Signed-off-by: elseif <elseif@live.cn>
This commit is contained in:
elseif 2025-09-18 23:29:20 +08:00 committed by GitHub
parent 86e2727c56
commit b436141665
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -474,7 +474,11 @@
const url = `${baseUrl(v.version, g.arch)}${file}`; const url = `${baseUrl(v.version, g.arch)}${file}`;
let label = "Download"; let label = "Download";
if (download.title === "Cloud Hosted Router" && file.includes('chr')) { if (download.title === "Cloud Hosted Router" && file.includes('chr')) {
label = file.includes("legacy-bios") ? "Legacy" : "UEFI"; if (v.version.charAt(0) === "6" ){
label = "Legacy";
} else {
label = file.includes("legacy-bios") ? "Legacy" : "UEFI";
}
} }
return `<a href="${url}" class="inline-flex items-center gap-1.5 text-blue-500 dark:text-blue-400 hover:underline" title="${file}" target="_blank"><span class="iconify" data-icon="${ICONS.download}"></span> ${label}</a>`; return `<a href="${url}" class="inline-flex items-center gap-1.5 text-blue-500 dark:text-blue-400 hover:underline" title="${file}" target="_blank"><span class="iconify" data-icon="${ICONS.download}"></span> ${label}</a>`;
}).join("<br>"); }).join("<br>");