From ed4be939cbb23fcfc7b75ea2142401355f76934f Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Sat, 23 Dec 2023 01:16:29 +0800 Subject: [PATCH] [opt] gallery --- scripts/tags/lib/gallery.js | 34 ++++++++++++++-------------------- 1 file changed, 14 insertions(+), 20 deletions(-) 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 += '` return el }