11<!DOCTYPE html>
22< html lang ="zh-CN ">
33< head >
4- < link rel ="icon " href ="/ favicon.svg ">
4+ < link rel ="icon " href ="favicon.svg ">
55 < meta charset ="UTF-8 ">
66 < meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
77 < title > 工具使用排行 - JustHTMLs</ title >
88 < link rel ="canonical " href ="https://www.htmls.dev/tools-rank.html ">
9- < link rel ="stylesheet " href ="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css " onerror =" this.onerror=null;this.href='/ assets/vendor/fontawesome/css/all.min.css'; ">
9+ < link rel ="stylesheet " href ="assets/vendor/fontawesome/css/all.min.css ">
1010 < style >
1111 : root {
1212 --primary : # 6366f1 ;
211211 < header >
212212 < div class ="container ">
213213 < div class ="header-row ">
214- < a class ="back-link " href ="/index.html "> < i class ="fas fa-arrow-left "> </ i > 返回首页</ a >
214+ < a class ="back-link " href ="./ "> < i class ="fas fa-arrow-left "> </ i > 返回首页</ a >
215215 < div class ="page-title "> 工具使用排行</ div >
216216 < div class ="controls ">
217217 < label for ="rank-metric "> 排行指标</ label >
@@ -248,7 +248,7 @@ <h1>工具使用排行</h1>
248248 let stats = { } ;
249249
250250 async function loadTools ( ) {
251- const response = await fetch ( '/ index.json' ) ;
251+ const response = await fetch ( 'index.json' ) ;
252252 if ( ! response . ok ) {
253253 throw new Error ( '加载工具列表失败' ) ;
254254 }
@@ -259,7 +259,7 @@ <h1>工具使用排行</h1>
259259 async function loadStats ( ) {
260260 if ( tools . length === 0 ) return ;
261261 const ids = tools . map ( tool => tool . id ) . join ( ',' ) ;
262- const response = await fetch ( `/ api/clicks?ids=${ encodeURIComponent ( ids ) } ` ) ;
262+ const response = await fetch ( `api/clicks?ids=${ encodeURIComponent ( ids ) } ` ) ;
263263 if ( ! response . ok ) {
264264 throw new Error ( '加载统计失败' ) ;
265265 }
@@ -310,7 +310,7 @@ <h1>工具使用排行</h1>
310310 <div class="rank-item">
311311 <div class="rank-badge">${ index + 1 } </div>
312312 <div class="rank-info">
313- <a class="rank-name" href="/ ${ item . tool . entry } ">${ item . tool . name } </a>
313+ <a class="rank-name" href="${ item . tool . entry } ">${ item . tool . name } </a>
314314 <div class="rank-meta">${ item . tool . description } </div>
315315 </div>
316316 <div class="rank-metric">
0 commit comments