From 4146a6389a65a875a12f5bc74ccbbca4cfd36e4f Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Tue, 25 Oct 2022 22:49:08 +0800 Subject: [PATCH] border --- scripts/tags/{grid.js => border.js} | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) rename scripts/tags/{grid.js => border.js} (80%) diff --git a/scripts/tags/grid.js b/scripts/tags/border.js similarity index 80% rename from scripts/tags/grid.js rename to scripts/tags/border.js index ecd8b46..2705bb9 100644 --- a/scripts/tags/grid.js +++ b/scripts/tags/border.js @@ -1,15 +1,15 @@ /** - * grid.js v1.0 | https://github.com/xaoxuu/hexo-theme-stellar/ + * border.js v1.0 | https://github.com/xaoxuu/hexo-theme-stellar/ * 格式与官方标签插件一致使用空格分隔,中括号内的是可选参数(中括号不需要写出来) * - * {% grid [color:color] [child:codeblock/tabs] title %} + * {% border [color:color] [child:codeblock/tabs] title %} * body - * {% endgrid %} + * {% endborder %} */ 'use strict'; -hexo.extend.tag.register('grid', function(args, content) { +hexo.extend.tag.register('border', function(args, content) { args = hexo.args.map(args, ['color', 'child'], ['title']); const color = args.color; const title = args.title;