[opt] use jsdelivr #496

This commit is contained in:
xaoxuu 2024-06-30 14:35:01 +08:00
parent c3161de3c6
commit bdcc31d6b1
1 changed files with 8 additions and 8 deletions

View File

@ -10,8 +10,8 @@ stellar:
######## head tags ########
preconnect:
# - https://gcore.jsdelivr.net
# - https://cdn.jsdelivr.net
# - https://unpkg.com
# - https://cdn.bootcdn.net
open_graph:
enable: true
@ -420,8 +420,8 @@ tag_plugins:
# 基础依赖
dependencies:
jquery: https://cdn.bootcdn.net/ajax/libs/jquery/3.7.1/jquery.min.js
marked: https://cdn.bootcdn.net/ajax/libs/marked/4.0.18/marked.min.js
jquery: https://cdn.jsdelivr.net/npm/jquery@3.7.1/dist/jquery.min.js
marked: https://cdn.jsdelivr.net/npm/marked@13.0.1/lib/marked.umd.min.js
# 内置服务,按需加载(页面内用到了就会加载,没有用到就不会加载)
@ -466,13 +466,13 @@ plugins:
preload:
enable: true
service: flying_pages # flying_pages
flying_pages: https://cdn.bootcdn.net/ajax/libs/flying-pages/2.1.2/flying-pages.min.js
flying_pages: https://cdn.jsdelivr.net/npm/flying-pages@2/flying-pages.min.js
# lazyload
# https://www.npmjs.com/package/vanilla-lazyload
lazyload:
enable: true # [hexo clean && hexo s] is required after changing this value.
js: https://cdn.bootcdn.net/ajax/libs/vanilla-lazyload/17.8.4/lazyload.min.js
js: https://cdn.jsdelivr.net/npm/vanilla-lazyload@19.1.3/dist/lazyload.min.js
transition: fade # blur, fade
# https://fancyapps.com/docs/ui/fancybox/
@ -480,8 +480,8 @@ plugins:
fancybox:
enable: true
loader: /js/plugins/fancybox-loader.js
js: https://cdn.bootcdn.net/ajax/libs/fancyapps-ui/5.0.22/fancybox/fancybox.umd.min.js
css: https://cdn.bootcdn.net/ajax/libs/fancyapps-ui/5.0.22/fancybox/fancybox.min.css
js: https://cdn.jsdelivr.net/npm/@fancyapps/ui@5.0/dist/fancybox/fancybox.umd.js
css: https://cdn.jsdelivr.net/npm/@fancyapps/ui@5.0/dist/fancybox/fancybox.css
# 让 md 语法图片支持放大可以这样写: .md-text img:not([class]), .md-text .image img
# 可以处理评论区的图片(不支持 iframe 类评论系统)例如:
# 使用 twikoo 评论可以写: .tk-content img:not([class*="emo"])
@ -497,7 +497,7 @@ plugins:
# https://scrollrevealjs.org/api/reveal.html
scrollreveal:
enable: #true
js: https://cdn.bootcdn.net/ajax/libs/scrollReveal.js/4.0.9/scrollreveal.min.js
js: https://cdn.jsdelivr.net/npm/scrollreveal@4.0.9/dist/scrollreveal.min.js
distance: 16px
duration: 800 # ms
interval: 100 # ms