最近jsdelivr凉了,国内不少博客都出现了无法访问或访问慢的问题。下面介绍一些jsdelivr的替换链接。
替换方式
themes/butterfly/_config.yml
|
新版butterfly cdn配置页面,在_config.yml底部
目前能用的jsdelivr链接
gcore.jsdelivr.net fastly.jsdelivr.net
|
带npm的链接自己用下面链接替换即可
npm
https://npm.sourcegcdn.com https://cdn.bilicdn.tk/npm https://cdn.staticfile.org/ https://npm.elemecdn.com https://unpkg.com/ 演示:https://unpkg.com/@waline/client@v2/dist/waline.js 记住/后不带npm/
|
我这里只列出我在用的cdn,我没有用到的cdn可以在评论中留言,有时间我会补充。
jquery
https://npm.elemecdn.com/jquery@3.2.1/dist/jquery.min.js
|
pjax
https://npm.elemecdn.com/pjax/pjax.min.js
|
waline
https://unpkg.com/@waline/client@v2/dist/waline.js https://unpkg.com/@waline/client@v2/dist/waline.css
|
fontawesome
https://use.fontawesome.com/releases/v6.0.0/css/all.css
|
fancybox
https://npm.elemecdn.com/@fancyapps/ui/dist/fancybox.css
|
medium_zoom
https://lf6-cdn-tos.bytecdntp.com/cdn/expire-1-M/medium-zoom/1.0.6/medium-zoom.min.js
|
translate
https://npm.elemecdn.com/js-heo@1.0.6/translate/tw_cn.js
|
butterfly替换jsdelivr cdn链接教程