diff --git a/content/tiaozhuan.md b/content/tiaozhuan.md index e3663718..1a3efe51 100644 --- a/content/tiaozhuan.md +++ b/content/tiaozhuan.md @@ -2,5 +2,6 @@ title: "跳转页面" date: 2024-08-03 layout: "tiaozhuan" +url: "tiaozhuan.html" draft: false --- \ No newline at end of file diff --git a/themes/Ying/layouts/_default/_markup/render-link.html b/themes/Ying/layouts/_default/_markup/render-link.html index 071bb354..d640ca14 100644 --- a/themes/Ying/layouts/_default/_markup/render-link.html +++ b/themes/Ying/layouts/_default/_markup/render-link.html @@ -3,7 +3,7 @@ {{ if or (in $url "www.usj.cc") (strings.HasPrefix $url "/") }} href="{{ $url }}" {{ else }} - href="/tiaozhuan/index.html?target={{ $url | base64Encode }}" + href="/tiaozhuan.html?target={{ $url | base64Encode }}" {{ end }} {{ if strings.HasPrefix .Destination "http" }} target="_blank"{{ end }} > diff --git a/themes/Ying/static/js/tiaozhuan.js b/themes/Ying/static/js/tiaozhuan.js index f209b189..0fcf17e0 100644 --- a/themes/Ying/static/js/tiaozhuan.js +++ b/themes/Ying/static/js/tiaozhuan.js @@ -27,7 +27,7 @@ function checkParent(element, classNames) { target.hostname !== window.location.hostname) { e.preventDefault(); let encodedUrl = btoa(target.href); // Base64 encode the URL - let url = '/tiaozhuan/index.html?target=' + encodedUrl; + let url = '/tiaozhuan.html?target=' + encodedUrl; window.open(url, '_blank'); } });