Skip to content

Commit 2a0870f

Browse files
authored
Merge pull request #52 from Ronchy2000/master
chore: 使用 jsDelivr CDN 加载 Twikoo,添加 SRI 校验
2 parents 2a8f7a6 + 3acb20d commit 2a0870f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

docs/index.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@
231231
twikoo.init({
232232
envId: 'https://twikoo-eo-w2aubykn.edgeone.cool',
233233
el: '#tcomment',
234+
lang: 'zh-CN',
234235
onCommentLoaded: function () {
235236
console.log('评论加载完成');
236237
}
@@ -269,6 +270,11 @@
269270
<!-- 返回顶部 -->
270271
<script src="https://cdn.jsdelivr.net/gh/Sumsung524/docsify-backTop/dist/docsify-backTop.min.js"></script>
271272
<!-- Twikoo评论系统 -->
272-
<script src="https://cdn.staticfile.org/twikoo/1.6.44/twikoo.all.min.js"></script>
273+
<!-- <script src="https://cdn.staticfile.org/twikoo/1.6.44/twikoo.all.min.js"></script> -->
274+
<script
275+
src="https://cdn.jsdelivr.net/npm/twikoo@1.6.36/dist/twikoo.all.min.js"
276+
integrity="sha384-4KfOjEinLSkv1i1J8TzlkC/RTnuiLoR1OLerVgjEKoH5djYtbf7mzEFsz9p3nfuA"
277+
crossorigin="anonymous">
278+
</script>
273279
</body>
274280
</html>

0 commit comments

Comments
 (0)