From f748cf4234f066a2db20fa6e6ca87723a0b8ddd8 Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Sat, 10 Dec 2022 22:29:24 +0800 Subject: [PATCH] [opt] split -> grid --- scripts/tags/{split.js => grid.js} | 10 +++++----- .../css/_layout/tag-plugins/{split.styl => grid.styl} | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) rename scripts/tags/{split.js => grid.js} (83%) rename source/css/_layout/tag-plugins/{split.styl => grid.styl} (89%) diff --git a/scripts/tags/split.js b/scripts/tags/grid.js similarity index 83% rename from scripts/tags/split.js rename to scripts/tags/grid.js index 748db8d..868db0d 100644 --- a/scripts/tags/split.js +++ b/scripts/tags/grid.js @@ -1,21 +1,21 @@ /** - * split.js v1.0 | https://github.com/xaoxuu/hexo-theme-stellar/ + * grid.js v1.0 | https://github.com/xaoxuu/hexo-theme-stellar/ * 格式与官方标签插件一致使用空格分隔,中括号内的是可选参数(中括号不需要写出来) * - * {% split [style:block/card] %} + * {% grid [style:block/card] %} * * left body * * right body - * {% endsplit %} + * {% endgrid %} */ 'use strict'; -hexo.extend.tag.register('split', function(args, content) { +hexo.extend.tag.register('grid', function(args, content) { args = hexo.args.map(args, ['bg']); var el = ''; - el += '
.cell padding: 1rem border-radius: $border-card