diff --git a/scripts/tags/lib/gallery.js b/scripts/tags/lib/gallery.js index 408cb53..0f65589 100644 --- a/scripts/tags/lib/gallery.js +++ b/scripts/tags/lib/gallery.js @@ -2,11 +2,11 @@ * gallery.js v1.0 | https://github.com/xaoxuu/hexo-theme-stellar/ * 格式与官方标签插件一致使用空格分隔,中括号内的是可选参数(中括号不需要写出来) * - * {% gallery size:small/medium/large %} - * /xxx.png - * /xxx.png - * /xxx.png - * /xxx.png + * {% gallery %} + * ![title](/xxx.png) + * ![title](/xxx.png) + * ![title](/xxx.png) + * ![title](/xxx.png) * {% endgallery %} */ @@ -29,23 +29,17 @@ function img(src, alt) { } module.exports = ctx => function(args, content) { - args = ctx.args.map(args, ['size']) var el = '' - el += '