diff --git a/_config.yml b/_config.yml index 5c58789..cde462d 100755 --- a/_config.yml +++ b/_config.yml @@ -380,7 +380,7 @@ plugins: lazyload: enable: true # [hexo clean && hexo s] is required after changing this value. js: https://gcore.jsdelivr.net/npm/vanilla-lazyload@17.8.3/dist/lazyload.min.js - transition: blur # blur, fade + transition: fade # blur, fade # https://scrollrevealjs.org/api/reveal.html scrollreveal: @@ -395,12 +395,12 @@ plugins: # available for {% image xxx %} fancybox: enable: true - js: https://gcore.jsdelivr.net/npm/@fancyapps/ui@4.0/dist/fancybox.umd.js - css: https://gcore.jsdelivr.net/npm/@fancyapps/ui@4.0/dist/fancybox.css + 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 # 可以处理评论区的图片(不支持 iframe 类评论系统)例如: # 使用twikoo评论可以写: .tk-content img:not([class*="emo"]) # 使用waline评论可以写: #waline_container .vcontent img - selector: .fancybox img # 多个选择器用英文逗号隔开 + selector: # 多个选择器用英文逗号隔开 # swiper swiper: diff --git a/scripts/tags/lib/gallery.js b/scripts/tags/lib/gallery.js index 6cbf551..092ce26 100644 --- a/scripts/tags/lib/gallery.js +++ b/scripts/tags/lib/gallery.js @@ -15,9 +15,11 @@ 'use strict' +var index = 0 + function img(src, alt) { let img = '' - img += ` 0) { img += ` alt="${alt}"` } @@ -44,7 +46,8 @@ module.exports = ctx => function(args, content) { if (args.layout == 'flow') { layoutType = 'flow' } - el += `