Skip to content

Commit cf18295

Browse files
committed
替换中转页链接的功能,应该使用html,不然像图片之类的内容会丢失
1 parent 896373a commit cf18295

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.vitepress/theme/components/Footer.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@
4242
<span class="name">订阅</span>
4343
</a>
4444
<!-- 十年之约 - 虫洞 -->
45-
<a class="travellings" href="https://www.foreverblog.cn/go.html" target="_blank">
45+
<a class="travellings link" href="https://www.foreverblog.cn/go.html" target="_blank">
4646
<img src="https://img.foreverblog.cn/wormhole_3.gif" alt="" style="width:auto;height:32px;" title="穿梭虫洞-随机访问十年之约友链博客">
4747
</a>
4848
<!-- 博友圈 -->
49-
<a class="travellings" href="https://www.boyouquan.com/home" target="_blank">
49+
<a class="travellings link" href="https://www.boyouquan.com/home" target="_blank">
5050
<img src="https://www.boyouquan.com/assets/images/sites/logo/planet-shuttle.png" alt="" style="width:auto;height:32px;" title="博友圈·星球穿梭">
5151
</a>
5252
</div>

.vitepress/theme/utils/commonTools.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ export const jumpRedirect = (html, themeConfig, isDom = false) => {
137137
const $a = $(el);
138138
const href = $a.attr("href");
139139
const classesStr = $a.attr("class");
140-
const innerText = $a.text();
140+
const innerText = $a.html();
141141
// 检查是否包含排除的类
142142
const classes = classesStr ? classesStr.trim().split(" ") : [];
143143
if (excludeClass.some((className) => classes.includes(className))) {

0 commit comments

Comments
 (0)