mirror of
https://github.com/SukkaW/Surge.git
synced 2025-12-12 17:20:35 +08:00
Refactor: update index.html template
This commit is contained in:
parent
59544333cd
commit
39a55c4f84
@ -20,8 +20,6 @@ const rootPath = path.resolve(__dirname, '../');
|
||||
* @returns {string}
|
||||
*/
|
||||
function template(urlList) {
|
||||
const date = new Date();
|
||||
|
||||
return `
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
@ -34,7 +32,6 @@ function template(urlList) {
|
||||
<link href="https://cdn.skk.moe/favicon/android-chrome-192x192.png" rel="icon" type="image/png" sizes="192x192">
|
||||
<link href="https://cdn.skk.moe/favicon/favicon-32x32.png" rel="icon" type="image/png" sizes="32x32">
|
||||
<link href="https://cdn.skk.moe/favicon/favicon-16x16.png" rel="icon" type="image/png" sizes="16x16">
|
||||
<link href="https://cdn.skk.moe/favicon/safari-pinned-tab.svg" rel="mask-icon" color="#fcfcfc">
|
||||
<meta name="description" content="Sukka 自用的 Surge 规则组">
|
||||
<meta property="og:title" content="Surge Ruleset | Sukka (@SukkaW)">
|
||||
<meta property="og:type" content="Website">
|
||||
@ -43,19 +40,17 @@ function template(urlList) {
|
||||
<meta property="og:description" content="Sukka 自用的 Surge 规则组">
|
||||
<meta name="twitter:card" content="summary">
|
||||
<link rel="canonical" href="https://ruleset.skk.moe/">
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@picocss/pico@1.5.0/css/pico.min.css">
|
||||
<link rel="stylesheet" href="https://cdn.staticfile.org/picocss/1.5.0/pico.slim.min.css">
|
||||
</head>
|
||||
<body>
|
||||
<main class="container">
|
||||
<h1>Sukka Surge Ruleset Server</h1>
|
||||
<p>Made by <a href="https://skk.moe">Sukka</a> | <a href="https://github.com/SukkaW/Surge/">Source @ GitHub</a> | Licensed under <a href="https://github.com/SukkaW/Surge/blob/master/LICENSE" target="_blank">AGPL-3.0</a></p>
|
||||
<p>Last Updated: ${date.toISOString()}</p>
|
||||
<p>Last Updated: ${new Date().toISOString()}</p>
|
||||
<hr>
|
||||
<br>
|
||||
<ul>
|
||||
${urlList.sort().map(url => `
|
||||
<li><a href="${url}" target="_blank">${url}</a></li>
|
||||
`).join('')}
|
||||
${urlList.sort().map(url => `<li><a href="${url}" target="_blank">${url}</a></li>`).join('')}
|
||||
</ul>
|
||||
</main>
|
||||
</body>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user