[opt] border -> ablock

This commit is contained in:
xaoxuu 2022-12-10 22:26:51 +08:00
parent 18ff0e7d2a
commit 9f1bcec031
2 changed files with 5 additions and 5 deletions

View File

@ -1,15 +1,15 @@
/** /**
* border.js v1.0 | https://github.com/xaoxuu/hexo-theme-stellar/ * ablock.js v1.0 | https://github.com/xaoxuu/hexo-theme-stellar/
* 格式与官方标签插件一致使用空格分隔中括号内的是可选参数中括号不需要写出来 * 格式与官方标签插件一致使用空格分隔中括号内的是可选参数中括号不需要写出来
* *
* {% border [color:color] [child:codeblock/tabs] title %} * {% ablock [color:color] [child:codeblock/tabs] title %}
* body * body
* {% endborder %} * {% endablock %}
*/ */
'use strict'; 'use strict';
hexo.extend.tag.register('border', function(args, content) { hexo.extend.tag.register('ablock', function(args, content) {
args = hexo.args.map(args, ['color', 'child'], ['title']); args = hexo.args.map(args, ['color', 'child'], ['title']);
const { title } = args; const { title } = args;
if (args.color == null) { if (args.color == null) {

View File

@ -5,7 +5,7 @@
>.cell >.cell
margin: 1rem 0 margin: 1rem 0
p:first-child>strong:only-child p:first-child>strong:only-child
font-size: $fs-h4 font-size: 1rem
>.cell> >.cell>
p p
line-height: 1.5 line-height: 1.5