refactor(site): use clean extensionless paths for home and releases

This commit is contained in:
N0VAN0M4LY committed 2026-12-03 05:23:41 +08:00
1 parent 621f648ed6
commit 833a011e9f
3 files changed
+10 -10

No files matched your search

+1 -1
View File
@@ -373,7 +373,7 @@
WTOffline · AGPL-3.0-or-later
</span>
<span class="right">
<a href="releases.html">
<a href="/releases">
<span class="lang-zh">全部版本</span>
<span class="lang-en">All Releases</span>
</a>
+6 -6
View File
@@ -15,20 +15,20 @@
<div class="grid"></div>
<header class="nav">
<a class="brand" href="index.html">
<a class="brand" href="/">
<img class="logo" src="assets/icon.svg" alt="" width="28" height="28" draggable="false">
<span>WT<span class="brand-accent">OFFLINE</span></span>
</a>
<nav class="nav-links">
<a href="index.html">
<a href="/">
<span class="lang-zh">返回主页</span>
<span class="lang-en">Home</span>
</a>
<a class="hide-sm" href="index.html#features">
<a class="hide-sm" href="/#features">
<span class="lang-zh">特性</span>
<span class="lang-en">Features</span>
</a>
<a class="hide-sm" href="index.html#community">
<a class="hide-sm" href="/#community">
<span class="lang-zh">社区</span>
<span class="lang-en">Community</span>
</a>
@@ -49,7 +49,7 @@
<main class="focus-in">
<div class="wrap">
<section class="page-head stagger">
<a class="back-link" href="index.html">
<a class="back-link" href="/">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round">
<path d="M19 12H5M11 6l-6 6 6 6"/>
</svg>
@@ -105,7 +105,7 @@
WTOffline · AGPL-3.0-or-later
</span>
<span class="right">
<a href="index.html">
<a href="/">
<span class="lang-zh">主页</span>
<span class="lang-en">Home</span>
</a>
+3 -3
View File
@@ -277,7 +277,7 @@
'</a>';
}
buttons +=
'<a class="dl" href="releases.html">' +
'<a class="dl" href="/releases">' +
'<span class="lang-zh">查看全部版本</span>' +
'<span class="lang-en">All Releases</span>' +
'</a>';
@@ -300,7 +300,7 @@
(dateStr ? '<span class="release-date">' + esc(dateStr) + '</span>' : '') +
'<span class="release-chip">Windows x64</span>' +
'<span style="flex:1"></span>' +
'<a class="badge" href="releases.html">' +
'<a class="badge" href="/releases">' +
'<span class="lang-zh">全部版本与校验值 →</span><span class="lang-en">All Versions &amp; Checksums →</span>' +
'</a>' +
'</div>' +
@@ -319,7 +319,7 @@
'<span class="lang-en">Could not load the live release feed right now. Open the All Releases page or visit GitHub Releases for downloads.</span>' +
'</p>' +
'<div class="release-dl">' +
'<a class="dl dl-main" href="releases.html">' +
'<a class="dl dl-main" href="/releases">' +
'<span class="lang-zh">打开全部版本页</span>' +
'<span class="lang-en">Open All Releases</span>' +
'</a>' +