Solitude 主题 Plugin Tags 部分移植来自店长的 hexo-butterfly-tag-plugins-plus,转载请注明出处。
使用方法和配置项基本相同

卡片 card

1
2
3
{% card icon,color,title %}
content
{% endcard %}
参数 含义
color red,green,blue,yellow,purple,cyan
icon 图标, no-icon
title 标题
title

lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusamus, accusantium ad adipisci alias

title

lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusamus, accusantium ad adipisci alias

title

lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusamus, accusantium ad adipisci alias

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{% card no-icon,green,title %}

lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusamus, accusantium ad adipisci alias

{% endcard %}

{% card sco-circle-check-solid,green,title %}

lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusamus, accusantium ad adipisci alias

{% endcard %}

{% card sco-circle-exclamation-solid,red,title %}

lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusamus, accusantium ad adipisci alias

{% endcard %}

按钮 btn

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{% btn [url],[text],[icon],[color] [style] [layout] [position] [size] %}

[url] : 链接
[text] : 按钮文字
[icon] : [可选] 图标
[color] : [可选] 按钮背景顔色(默认 style 时)
按钮字体和边框顔色(outline 时)
bg-default/bg-blue/bg-pink/bg-red/bg-purple/bg-orange/bg-green
[style] : [可选] 按钮样式 默认实心
outline/留空
[layout] : [可选] 按钮佈局 默认为 line
block/留空
[position] : [可选] 按钮位置 前提是设置了 layout 为 block 默认为左边
center/right/留空
[size] : [可选] 按钮大小
larger/留空
参数 含义
url 链接
text 按钮文字
icon [可选] 图标
color [可选] 按钮背景顔色(默认 style 时)按钮字体和边框顔色(outline 时)default/blue/pink/red/purple/orange/green
layout [可选] 按钮佈局 默认为 line block/留空
position [可选] 按钮位置 前提是设置了 layout 为 block 默认为左边 center/right/留空
size [可选] 按钮大小 larger/留空

一组按钮

This is my website, click the button
This is my website, click the button
This is my website, click the button
This is my website, click the button
This is my website, click the button

调整位置或大小



more than one button in center

居中按钮

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
> 一组按钮

This is my website, click the button {% btn 'https://blog.wzsco.top/',Solitude %}
This is my website, click the button {% btn 'https://blog.wzsco.top/',Solitude,scoicon sco-arrow-right-bold %}
This is my website, click the button {% btn 'https://blog.wzsco.top/',Solitude,,outline %}
This is my website, click the button {% btn 'https://blog.wzsco.top/',Solitude,scoicon sco-arrow-right-bold,outline %}
This is my website, click the button {% btn 'https://blog.wzsco.top/',Solitude,scoicon sco-arrow-right-bold,larger %}

> 调整位置或大小

{% btn 'https://blog.wzsco.top/',Solitude,scoicon sco-arrow-right-bold,block %}
{% btn 'https://blog.wzsco.top/',Solitude,scoicon sco-arrow-right-bold,block center larger %}
{% btn 'https://blog.wzsco.top/',Solitude,scoicon sco-arrow-right-bold,block right outline larger %}

> more than one button in center

<span>
{% btn 'https://blog.wzsco.top/',Solitude,scoicon sco-arrow-right-bold,larger %}
{% btn 'https://blog.wzsco.top/',Solitude,scoicon sco-arrow-right-bold,blue larger %}
{% btn 'https://blog.wzsco.top/',Solitude,scoicon sco-arrow-right-bold,pink larger %}
{% btn 'https://blog.wzsco.top/',Solitude,scoicon sco-arrow-right-bold,red larger %}
{% btn 'https://blog.wzsco.top/',Solitude,scoicon sco-arrow-right-bold,purple larger %}
{% btn 'https://blog.wzsco.top/',Solitude,scoicon sco-arrow-right-bold,orange larger %}
{% btn 'https://blog.wzsco.top/',Solitude,scoicon sco-arrow-right-bold,green larger %}
</span>

> 居中按钮

<div class="btn-center">
{% btn 'https://blog.wzsco.top/',Solitude,scoicon sco-arrow-right-bold,outline larger %}
{% btn 'https://blog.wzsco.top/',Solitude,scoicon sco-arrow-right-bold,outline blue larger %}
{% btn 'https://blog.wzsco.top/',Solitude,scoicon sco-arrow-right-bold,outline pink larger %}
{% btn 'https://blog.wzsco.top/',Solitude,scoicon sco-arrow-right-bold,outline red larger %}
{% btn 'https://blog.wzsco.top/',Solitude,scoicon sco-arrow-right-bold,outline purple larger %}
{% btn 'https://blog.wzsco.top/',Solitude,scoicon sco-arrow-right-bold,outline orange larger %}
{% btn 'https://blog.wzsco.top/',Solitude,scoicon sco-arrow-right-bold,outline green larger %}
</div>

单张图片 image

1
{% image 链接, width=宽度(可选), height=高度(可选), alt=描述(可选), bg=占位颜色(可选) %}
  1. 图片宽度高度:width=300px, height=32px
  2. 图片描述:alt=图片描述
  3. 占位背景色:bg=#f2f2f2

添加描述

每天下课回宿舍的路,没有什么故事。
每天下课回宿舍的路,没有什么故事。

指定宽度

设置占位背景色

优化不同宽度浏览的观感
优化不同宽度浏览的观感
1
2
3
4
5
6
7
8
9
10
11
> 添加描述

{% image https://bu.dusays.com/2023/06/01/6478937d7de6f.webp, alt=每天下课回宿舍的路,没有什么故事。 %}

> 指定宽度

{% image https://bu.dusays.com/2023/06/01/6478937d7de6f.webp, width=400px %}

> 设置占位背景色

{% image https://bu.dusays.com/2023/06/01/6478937d7de6f.webp, width=400px, bg=#1D0C04, alt=优化不同宽度浏览的观感 %}

行内图片 inlineimage

1
{% inlineimage 图片链接, height=高度(可选) %}
  1. 高度:height=20px

这是 一段话。

这又是 一段话。

1
2
3
这是 {% inlineimage https://bu.dusays.com/2023/06/01/647895232e5d5.webp %} 一段话。

这又是 {% inlineimage https://bu.dusays.com/2022/05/19/6285328a83ca7.gif, height=40px %} 一段话。

label 标签

1
{% label text color %}
参数 释义
text 文字
color 【可选】背景颜色,默认为 default,default/blue/pink/red/purple/orange/green

1
{% label text red %}

单选列表 radio

1
{% radio 样式参数(可选), 文本(支持简单md) %}
  1. 颜色: red,yellow,green,cyan,blue,gray
  2. 选中状态: checked

纯文本测试

支持简单的 markdown 语法

支持自定义颜色

绿色

黄色

青色

蓝色

1
2
3
4
5
6
7
{% radio 纯文本测试 %}
{% radio checked, 支持简单的 [markdown](https://guides.github.com/features/mastering-markdown/) 语法 %}
{% radio red, 支持自定义颜色 %}
{% radio green, 绿色 %}
{% radio yellow, 黄色 %}
{% radio cyan, 青色 %}
{% radio blue, 蓝色 %}

直链音频 audio

1
{% audio 音频链接 %}
1
{% audio 音频链接 %}

直链视频 video

1
{% video 视频链接 %}
  1. 对其方向:left, center, right
  2. 列数:逗号后面直接写列数,支持 1 ~ 4 列。

默认

1
2
3
4
5
6

> 默认

{% video 视频链接 %}


段落文本 p

1
{% p 样式参数(参数以空格划分), 文本内容 %}
  1. 字体: logo, code
  2. 颜色: red,yellow,green,cyan,blue,gray
  3. 大小: small, h4, h3, h2, h1, large, huge, ultra
  4. 对齐方向: left, center, right

red left

yellow center

green right

center h1

center ultra

1
2
3
4
5
6
7
8
9
10

{% p red left, red left %}

{% p yellow center, yellow center %}

{% p green right, green right %}

{% p center h1, center h1 %}

{% p center ultra, center ultra %}

Note (Bootstrap Callout)

1
2
3
{% note [class] %}
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aperiam, libero.
{% endnote %}
参数 含义
class 显示值

显示值:(中间空格)

  • 配色
    • default / primary / success / info / warning / danger
  • 样式
    • simple / modern / flat / disabled
  • 图标
    • noicon

默认样式

Demo 1 - default

Simple 样式

Demo 1 - default

Demo 2 - primary

Demo 3 - success

Demo 4 - info

Demo 5 - warning

Demo 6 - danger

Modern 样式

Demo 1 - default

Demo 2 - primary

Demo 3 - success

Demo 4 - info

Demo 5 - warning

Demo 6 - danger

Flat 样式

Demo 1 - default

Demo 2 - primary

Demo 3 - success

Demo 4 - info

Demo 5 - warning

Demo 6 - danger

Disabled 样式

Demo 1 - default

Demo 2 - primary

Demo 3 - success

Demo 4 - info

Demo 5 - warning

Demo 6 - danger

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
默认样式:
{% note default %}
Demo 1 - default
{% endnote %}

1. Simple 样式
{% note default simple %}
Demo 1 - default
{% endnote %}

{% note primary simple %}
Demo 2 - primary
{% endnote %}

{% note success simple %}
Demo 3 - success
{% endnote %}

{% note info simple %}
Demo 4 - info
{% endnote %}

{% note warning simple %}
Demo 5 - warning
{% endnote %}

{% note danger simple %}
Demo 6 - danger
{% endnote %}

2. Modern 样式
{% note default modern %}
Demo 1 - default
{% endnote %}

{% note primary modern %}
Demo 2 - primary
{% endnote %}

{% note success modern %}
Demo 3 - success
{% endnote %}

{% note info modern %}
Demo 4 - info
{% endnote %}

{% note warning modern %}
Demo 5 - warning
{% endnote %}

{% note danger modern %}
Demo 6 - danger
{% endnote %}

3. Flat 样式
{% note default flat %}
Demo 1 - default
{% endnote %}

{% note primary flat %}
Demo 2 - primary
{% endnote %}

{% note success flat %}
Demo 3 - success
{% endnote %}

{% note info flat %}
Demo 4 - info
{% endnote %}

{% note warning flat %}
Demo 5 - warning
{% endnote %}

{% note danger flat %}
Demo 6 - danger
{% endnote %}

3. Disabled 样式
{% note default disabled %}
Demo 1 - default
{% endnote %}

{% note primary disabled %}
Demo 2 - primary
{% endnote %}

{% note success disabled %}
Demo 3 - success
{% endnote %}

{% note info disabled %}
Demo 4 - info
{% endnote %}

{% note warning disabled %}
Demo 5 - warning
{% endnote %}

{% note danger disabled %}
Demo 6 - danger
{% endnote %}

分栏 tabs

分栏支持内置codesign图标,如果开启了 customicon 则可以使用自定义的图标,否则只能使用默内置codesign图标

1
2
3
4
5
6
7
8
9
{% tabs Unique name, [index] %}

<!-- tab [Tab caption] [@icon] -->

Any content (support inline tags too).

<!-- endtab -->

{% endtabs %}
  1. Unique name :

    • 选项卡块标签的唯一名称,不带逗号。
    • 将在#id 中用作每个标签及其索引号的前缀。
    • 如果名称中包含空格,则对于生成#id,所有空格将由破折号代替。
    • 仅当前帖子/页面的 URL 必须是唯一的!
  2. [Tab caption]:

    • 当前选项卡的标题。
    • 如果未指定标题,则带有制表符索引后缀的唯一名称将用作制表符的标题。
    • 如果未指定标题,但指定了图标,则标题将为空。
    • 可选参数。
  3. [@icon]:

    • FontAwesome 图标名称(全名,看起来像“ fas fa-font”)
    • 可以指定带空格或不带空格;
    • 例如’Tab caption @icon’ 和 ‘Tab caption@icon’.
    • 可选参数。

Demo 1 - 预设选择第一个【默认】

This is Tab 1.

This is Tab 2.

This is Tab 3.

Demo 2 - 没有预设值

This is Tab 1.

This is Tab 2.

This is Tab 3.

Demo 3 - 自定义Tab名 + icon + Tab名和icon

This is Tab 1.

This is Tab 2.

This is Tab 3.

Demo 1 - 预设选择第一个【默认】

1
2
3
4
5
6
7
8
9
10
11
12

{% subtabs Demo1 %}
<!-- tab test1 -->
This is Tab 1.
<!-- endtab-->
<!-- tab test2 -->
This is Tab 2.
<!-- endtab-->
<!-- tab test3 -->
This is Tab 3.
<!-- endtab-->
{% endsubtabs %}

Demo 2 - 没有预设值

1
2
3
4
5
6
7
8
9
10
11
12
{% subtabs Demo2 %}
<!-- tab -->
This is Tab 1.
<!-- endtab-->
<!-- tab -->
This is Tab 2.
<!-- endtab-->
<!-- tab -->
This is Tab 3.
<!-- endtab-->
{% endsubtabs %}

Demo 3 - 自定义Tab名 + icon + Tab名和icon

1
2
3
4
5
6
7
8
9
10
11
{% subtabs Demo3 %}
<!-- tab test1 -->
This is Tab 1.
<!-- endtab-->
<!-- tab @sco-disc-fill -->
This is Tab 2.
<!-- endtab-->
<!-- tab 音乐 @sco-disc-fill -->
This is Tab 3.
<!-- endtab-->
{% endsubtabs %}

时间轴 Timelne

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{% timeline title %}

{% timenode title %}

xxxx

{% endtimenode %}

{% timenode title %}

xxxx

{% endtimenode %}

{% endtimeline %}
参数 含义
title 节点名称
xxxx 内容区

8

  • 你好
  • 你好

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Distinctio dolores eaque est ex voluptatum. Consequuntur
eligendi esse fugit quasi ut.

9

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ad amet animi assumenda atque consequatur, doloribus eligendi
est excepturi facere molestias nam, omnis perspiciatis quas, repellendus sit. Ipsum, rem, velit?

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{% timeline %}

{% timenode 8 %}

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Distinctio dolores eaque est ex voluptatum. Consequuntur
eligendi esse fugit quasi ut.

{% endtimenode %}

{% timenode 9 %}

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ad amet animi assumenda atque consequatur, doloribus eligendi
est excepturi facere molestias nam, omnis perspiciatis quas, repellendus sit. Ipsum, rem, velit?

{% endtimenode %}

{% endtimeline %}
1
{% link [title] [subtitle] [link] %}
参数 含义
title 标题
subtitle 简介
link 跳转链接
1
2
3
{% link Solitude 官方文档地址 https://docs.wzsco.top/ %}

{% link 知乎 有问题,就会有答案 https://www.zhihu.com/ %}

折叠块 fold

1
2
3
{% fold title open %}

{% endfold %}
参数 含义
title 标题(可选)
oepn 是否打开(可选)不填默认不打开

Demo 1 - title

Demo1

Demo 2 - title + open

Demo2

Demo 1 - title

1
2
3
{% fold Demo1 %}

{% endfold %}

Demo 2 - title + open

1
2
3
{% fold Demo2 open %}

{% endfold %}

bilibili 视频播放

1
{% bilibili [id] [time] %}
参数 含义
url 视频嵌入链接(例如://player.bilibili.com/player.html?aid=450061422&bvid=BV1nj411i7Ja&cid=1310680043&p=1)
1
{% bilibili //player.bilibili.com/player.html?aid=450061422&bvid=BV1nj411i7Ja&cid=1310680043&p=1 %}