Skip to content

Commit 1d9c130

Browse files
committed
修復 index.html 中的圖片和連結路徑
- 為合作夥伴圖片添加 relative_url filter - 為所有內部連結添加 relative_url filter - 確保 project page 部署時路徑正確
1 parent e082ec5 commit 1d9c130

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

index.html

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,13 @@
4747
<div class="flex flex-col sm:flex-row items-center justify-center gap-8 fade-in-up" data-delay="1500">
4848
<!-- CTA Buttons -->
4949
<div class="flex items-center gap-4">
50-
<a href="/blog/" class="btn btn-primary group">
50+
<a href="{{ '/blog/' | relative_url }}" class="btn btn-primary group">
5151
<span>瀏覽文章</span>
5252
<svg class="w-4 h-4 ml-2 group-hover:translate-x-1 transition-transform" fill="none" stroke="currentColor" viewBox="0 0 24 24">
5353
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 7l5 5m0 0l-5 5m5-5H6"/>
5454
</svg>
5555
</a>
56-
<a href="/markdown/products/" class="btn btn-outline">
56+
<a href="{{ '/markdown/products/' | relative_url }}" class="btn btn-outline">
5757
書籍資源
5858
</a>
5959
</div>
@@ -265,7 +265,7 @@ <h2 class="text-2xl md:text-3xl font-bold font-mono text-cp-green-500 mb-4">
265265
<h2 class="text-2xl font-bold font-mono text-cp-green-500">
266266
<span class="text-cp-dark-600">//</span> 最新文章
267267
</h2>
268-
<a href="/blog/" class="text-cp-green-500 font-mono text-sm hover:text-cp-green-400 transition-colors flex items-center gap-2 group">
268+
<a href="{{ '/blog/' | relative_url }}" class="text-cp-green-500 font-mono text-sm hover:text-cp-green-400 transition-colors flex items-center gap-2 group">
269269
查看全部
270270
<svg class="w-4 h-4 group-hover:translate-x-1 transition-transform" fill="none" stroke="currentColor" viewBox="0 0 24 24">
271271
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"/>
@@ -315,7 +315,7 @@ <h2 class="text-2xl font-bold font-mono text-cp-green-500 mb-12 text-center scro
315315

316316
<div class="grid md:grid-cols-2 lg:grid-cols-3 gap-6">
317317
<!-- Bitcoin -->
318-
<a href="/markdown/resources/resources-bitcoin/" class="card p-6 group card-3d scroll-reveal" data-delay="100">
318+
<a href="{{ '/markdown/resources/resources-bitcoin/' | relative_url }}" class="card p-6 group card-3d scroll-reveal" data-delay="100">
319319
<div class="w-14 h-14 bg-bitcoin-orange/10 rounded-lg flex items-center justify-center mb-4 group-hover:bg-bitcoin-orange/20 transition-colors group-hover:scale-110 duration-300">
320320
<span class="text-3xl text-bitcoin-orange"></span>
321321
</div>
@@ -328,7 +328,7 @@ <h3 class="text-lg font-bold font-mono text-cp-dark-800 group-hover:text-cp-gree
328328
</a>
329329

330330
<!-- Lightning Network -->
331-
<a href="/markdown/resources/resources-ln/" class="card p-6 group card-3d scroll-reveal" data-delay="200">
331+
<a href="{{ '/markdown/resources/resources-ln/' | relative_url }}" class="card p-6 group card-3d scroll-reveal" data-delay="200">
332332
<div class="w-14 h-14 bg-cp-green-500/10 rounded-lg flex items-center justify-center mb-4 group-hover:bg-cp-green-500/20 transition-colors group-hover:scale-110 duration-300">
333333
<span class="text-3xl"></span>
334334
</div>
@@ -341,7 +341,7 @@ <h3 class="text-lg font-bold font-mono text-cp-dark-800 group-hover:text-cp-gree
341341
</a>
342342

343343
<!-- Privacy -->
344-
<a href="/markdown/resources/resources-blockchain-privacy/" class="card p-6 group card-3d scroll-reveal" data-delay="300">
344+
<a href="{{ '/markdown/resources/resources-blockchain-privacy/' | relative_url }}" class="card p-6 group card-3d scroll-reveal" data-delay="300">
345345
<div class="w-14 h-14 bg-cp-green-500/10 rounded-lg flex items-center justify-center mb-4 group-hover:bg-cp-green-500/20 transition-colors group-hover:scale-110 duration-300">
346346
<span class="text-3xl">🔒</span>
347347
</div>
@@ -354,7 +354,7 @@ <h3 class="text-lg font-bold font-mono text-cp-dark-800 group-hover:text-cp-gree
354354
</a>
355355

356356
<!-- Schnorr -->
357-
<a href="/markdown/resources/resources-schnorr-signature/" class="card p-6 group card-3d scroll-reveal" data-delay="400">
357+
<a href="{{ '/markdown/resources/resources-schnorr-signature/' | relative_url }}" class="card p-6 group card-3d scroll-reveal" data-delay="400">
358358
<div class="w-14 h-14 bg-cp-green-500/10 rounded-lg flex items-center justify-center mb-4 group-hover:bg-cp-green-500/20 transition-colors group-hover:scale-110 duration-300">
359359
<span class="text-3xl font-mono text-cp-green-500">σ</span>
360360
</div>
@@ -367,7 +367,7 @@ <h3 class="text-lg font-bold font-mono text-cp-dark-800 group-hover:text-cp-gree
367367
</a>
368368

369369
<!-- Ethereum -->
370-
<a href="/markdown/resources/resources-ethereum/" class="card p-6 group card-3d scroll-reveal" data-delay="500">
370+
<a href="{{ '/markdown/resources/resources-ethereum/' | relative_url }}" class="card p-6 group card-3d scroll-reveal" data-delay="500">
371371
<div class="w-14 h-14 bg-cp-green-500/10 rounded-lg flex items-center justify-center mb-4 group-hover:bg-cp-green-500/20 transition-colors group-hover:scale-110 duration-300">
372372
<span class="text-3xl">Ξ</span>
373373
</div>
@@ -380,7 +380,7 @@ <h3 class="text-lg font-bold font-mono text-cp-dark-800 group-hover:text-cp-gree
380380
</a>
381381

382382
<!-- Books -->
383-
<a href="/markdown/products/" class="card p-6 group card-3d scroll-reveal" data-delay="600">
383+
<a href="{{ '/markdown/products/' | relative_url }}" class="card p-6 group card-3d scroll-reveal" data-delay="600">
384384
<div class="w-14 h-14 bg-cp-green-500/10 rounded-lg flex items-center justify-center mb-4 group-hover:bg-cp-green-500/20 transition-colors group-hover:scale-110 duration-300">
385385
<span class="text-3xl">📚</span>
386386
</div>
@@ -404,22 +404,22 @@ <h2 class="text-2xl font-bold font-mono text-cp-green-500 mb-12 text-center scro
404404

405405
<div class="flex flex-wrap items-center justify-center gap-10 scroll-reveal">
406406
<a href="https://taipeihack.org/" target="_blank" rel="noopener noreferrer" class="grayscale hover:grayscale-0 opacity-50 hover:opacity-100 transition-all duration-300 hover:scale-110">
407-
<img src="/img/logo-taipeihackerspace.jpg" alt="Taipei Hackerspace" class="h-14 md:h-16 w-auto rounded">
407+
<img src="{{ '/img/logo-taipeihackerspace.jpg' | relative_url }}" alt="Taipei Hackerspace" class="h-14 md:h-16 w-auto rounded">
408408
</a>
409409
<a href="https://blockstream.com" target="_blank" rel="noopener noreferrer" class="grayscale hover:grayscale-0 opacity-50 hover:opacity-100 transition-all duration-300 hover:scale-110">
410-
<img src="/img/logo-blockstream.png" alt="Blockstream" class="h-10 md:h-12 w-auto">
410+
<img src="{{ '/img/logo-blockstream.png' | relative_url }}" alt="Blockstream" class="h-10 md:h-12 w-auto">
411411
</a>
412412
<a href="https://www.blocktempo.com" target="_blank" rel="noopener noreferrer" class="grayscale hover:grayscale-0 opacity-50 hover:opacity-100 transition-all duration-300 hover:scale-110">
413-
<img src="/img/logo-blocktempo.jpg" alt="BlockTempo" class="h-14 md:h-16 w-auto rounded">
413+
<img src="{{ '/img/logo-blocktempo.jpg' | relative_url }}" alt="BlockTempo" class="h-14 md:h-16 w-auto rounded">
414414
</a>
415415
<a href="https://nayuta.co" target="_blank" rel="noopener noreferrer" class="grayscale hover:grayscale-0 opacity-50 hover:opacity-100 transition-all duration-300 hover:scale-110">
416-
<img src="/img/logo-nayuta.jpg" alt="Nayuta" class="h-14 md:h-16 w-auto rounded">
416+
<img src="{{ '/img/logo-nayuta.jpg' | relative_url }}" alt="Nayuta" class="h-14 md:h-16 w-auto rounded">
417417
</a>
418418
<a href="https://moztw.org/space/" target="_blank" rel="noopener noreferrer" class="grayscale hover:grayscale-0 opacity-50 hover:opacity-100 transition-all duration-300 hover:scale-110">
419-
<img src="/img/logo-mozilla.png" alt="Mozilla" class="h-14 md:h-16 w-auto">
419+
<img src="{{ '/img/logo-mozilla.png' | relative_url }}" alt="Mozilla" class="h-14 md:h-16 w-auto">
420420
</a>
421421
<a href="https://pelith.com" target="_blank" rel="noopener noreferrer" class="grayscale hover:grayscale-0 opacity-50 hover:opacity-100 transition-all duration-300 hover:scale-110">
422-
<img src="/img/logo-pelith.png" alt="Pelith" class="h-12 md:h-14 w-auto">
422+
<img src="{{ '/img/logo-pelith.png' | relative_url }}" alt="Pelith" class="h-12 md:h-14 w-auto">
423423
</a>
424424
</div>
425425
</div>

0 commit comments

Comments
 (0)