Skip to content

Commit 276304f

Browse files
committed
refactor: replace expired ByteCDN with self-hosted static CDN
1 parent 5b0ea87 commit 276304f

File tree

1 file changed

+11
-50
lines changed

1 file changed

+11
-50
lines changed

docs/reading/index.html

Lines changed: 11 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@
1010
<link rel="stylesheet" href="https://oss.newzone.top/docsify/main/4.13.1/themes/vue.css" />
1111
<link rel="stylesheet" href="https://oss.newzone.top/docsify/docsify-toc/dist/toc.css" />
1212
<!-- <link rel="stylesheet" href="https://oss.newzone.top/docsify/docsify-gifcontrol/dist/docsify-gifcontrol.css"> -->
13-
<!-- docsify waline -->
14-
<script src="https://unpkg.com/@waline/client@v2/dist/waline.js"></script>
15-
<link rel="stylesheet" href="https://unpkg.com/@waline/client@v2/dist/waline.css" />
1613
<style>
1714
.anchor {
1815
font-weight: bold;
@@ -58,25 +55,6 @@
5855
}
5956
}
6057
</style>
61-
<!-- Matomo 此区块为统计代码,请删除-->
62-
<script>
63-
var _paq = (window._paq = window._paq || []);
64-
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
65-
_paq.push(["trackPageView"]);
66-
_paq.push(["enableLinkTracking"]);
67-
(function () {
68-
var u = "https://piwik.seoipo.com/";
69-
_paq.push(["setTrackerUrl", u + "matomo.php"]);
70-
_paq.push(["setSiteId", "7"]);
71-
var d = document,
72-
g = d.createElement("script"),
73-
s = d.getElementsByTagName("script")[0];
74-
g.async = true;
75-
g.src = u + "matomo.js";
76-
s.parentNode.insertBefore(g, s);
77-
})();
78-
</script>
79-
<!-- End Matomo Code 此区块为统计代码,请删除-->
8058
</head>
8159

8260
<body class="body--ready">
@@ -130,15 +108,6 @@
130108
"/.*/_sidebar.md": "/_sidebar.md", // See #301
131109
},
132110

133-
// 添加页脚
134-
footer: {
135-
copy: "盛年不重来,一日难再晨。 —— ",
136-
auth: '🏷️ <a href="https://newzone.top/" target="_blank">LearnData</a><br/><br/><span id="sitetime"></span>',
137-
//pre: '<hr/>',
138-
style: "text-align: left;",
139-
//class: 'className',
140-
},
141-
142111
toc: {
143112
scope: ".markdown-section",
144113
headings: "h2, h3, h4, h5, h6",
@@ -157,23 +126,15 @@
157126
count: {
158127
language: "chinese", // default:english|chinese
159128
},
160-
// 部署 Waline:https://waline.js.org/guide/get-started.html
161-
// 阅读量统计与评论,不需要可删除本区块
162-
waline: {
163-
serverURL: "https://waline.newzone.top",
164-
pageview: true, // 浏览量统计
165-
// Waline 等级标签
166-
walineLocales: {
167-
"/": {
168-
admin: "盛年不重来,一日难再晨",
169-
level0: "锻体",
170-
level1: "炼气",
171-
level2: "筑基",
172-
level3: "金丹",
173-
level4: "元婴",
174-
level5: "化神",
175-
},
176-
},
129+
// 如有 Waline 后端,可添加阅读量统计:https://waline.js.org/guide/get-started.html
130+
131+
// 添加页脚
132+
footer: {
133+
copy: "盛年不重来,一日难再晨。 —— ",
134+
auth: '🏷️ <a href="https://newzone.top/" target="_blank">LearnData</a><br/><br/><span id="sitetime"></span>',
135+
//pre: '<hr/>',
136+
style: "text-align: left;",
137+
//class: 'className',
177138
},
178139
};
179140
</script>
@@ -197,7 +158,7 @@
197158
<script src="https://sidecar.gitter.im/dist/sidecar.v1.js" async defer></script>
198159
-->
199160

200-
<script src="https://lf26-cdn-tos.bytecdntp.com/cdn/expire-1-y/jquery/3.6.0/jquery.min.js"></script>
161+
<script src="https://oss.newzone.top/jquery/3.7.1/dist/jquery.min.js"></script>
201162
<script src="https://oss.newzone.top/instantpage.min.js"></script>
202163
<!-- 添加网站运行时间统计 -->
203164
<script language="javascript">
@@ -223,7 +184,7 @@
223184
minutes - 0-59 之间的整数,做为 date 对象的分钟数
224185
seconds - 0-59 之间的整数,做为 date 对象的秒数
225186
microseconds - 0-999 之间的整数,做为 date 对象的毫秒数 */
226-
var t1 = Date.UTC(2022, 7, 23, 22, 22, 22); //北京时间 2022-07-23 22:22:22 //LearnData 首个 commit 时间,该为你自己值得纪念的日子吧
187+
var t1 = Date.UTC(2022, 7, 23, 22, 22, 22); //北京时间 2022-07-23 22:22:22 //LearnData 首个 commit 时间,改为你自己值得纪念的日子吧
227188
var t2 = Date.UTC(todayYear, todayMonth, todayDate, todayHour, todayMinute, todaySecond);
228189
var diff = t2 - t1;
229190
var diffYears = Math.floor(diff / years);

0 commit comments

Comments
 (0)