[opt] border -> ablock
This commit is contained in:
parent
18ff0e7d2a
commit
9f1bcec031
|
@ -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) {
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue