Butterfly专用语法

详见: Butterfly的标签外挂

注意:标签外挂是Hexo独有的功能,并不是标准的Markdown格式。
以下的写法,只适用于Butterfly主题,用在其它主题上不会有效果,甚至可能会报错。使用前请留意

时间轴 timeline

1
2
3
4
5
6
7
8
9
{% timeline title,color %}
<!-- timeline title -->
xxxxx
<!-- endtimeline -->
<!-- timeline title -->
xxxxx
<!-- endtimeline -->
{% endtimeline %}

2022

9.20

今天是2022年9月20日
那么明天就是9月21日了

9.21

今天是2022年9月21日
那么昨天就是9月20日了

隐藏按钮 hideToggle

1
{% hideToggle [text],[color],[color], %} [text] {% endhideToggle %}
自定义

这是图片替代文本

提示标签 note

1
2
3
{% note [class] [no-icon] [style] %}
[text]
{% endnote %}

info 提示块标签

1
2
3
{% gallery [lazyload],[rowHeight],[limit]%}
![text](image.png)
{% endgallery %}

本站自用的外挂标签

本外挂标签基于Akilarの糖果屋-基于Butterfly的外挂标签的基础上修改引入,为自定义样式,仅在该博客下使用,并不一定能够兼容。

文字隐藏psw

可隐藏文字,鼠标悬浮时显示,格式为

1
{% psw [text] %}

示例:密码样式的文本:这里没有验证码

格式为

1
{% link [name],[describe],[https://] %}

示例

勾选外挂checkbox

1
2
3
4
5
{% checkbox,checked,[color]), [text](支持简单md) %}
{% checkbox [color] checked, [text] %}
{% checkbox times [color] checked, [text] %}
{% checkbox plus [color] checked, [text] %}
{% checkbox minus [color] checked, [text] %}

checked

支持简单的 markdown 语法

增加

减少

外挂气泡 bubble

1
{% bubble [text],"describe","#ec5830" %}
flex布局Flex 是 Flexible Box 的缩写,意为弹性布局",用来为盒状模型提供最大的灵活性"