Installation

1
npm install hexo-solitude-tag

Usage

Note (Bootstrap)

1
2
3
{% note class='className' icon='icon' %}
Any content (support inline tags too).
{% endnote %}
  1. ‘className’: The class name of the
  2. ‘icon’: The icon name (full name, e.g., “fas fa-github”).

default

Default note.

Primary note with icon.

Success note with icon.

Info note with icon.

Warning note with icon.

Danger note with icon.

flat

Default note.

Primary note with icon.

Success note with icon.

Info note with icon.

Warning note with icon.

Danger note with icon.

simple

Default note.

Primary note with icon.

Success note with icon.

Info note with icon.

Warning note with icon.

Danger note with icon.

modern

Default note.

Primary note with icon.

Success note with icon.

Info note with icon.

Warning note with icon.

Danger note with icon.

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
105
106
107
108
> default

{% note 'default' %}

Default note.

{% endnote %}

{% note 'primary' 'fas fa-circle-minus' %}
Primary note with icon.
{% endnote %}

{% note 'success' 'fas fa-circle-check' %}
Success note with icon.
{% endnote %}

{% note 'info' 'fas fa-circle-info' %}
Info note with icon.
{% endnote %}

{% note 'warning' 'fas fa-circle-xmark' %}
Warning note with icon.
{% endnote %}

{% note 'danger' 'fas fa-circle-exclamation' %}
Danger note with icon.
{% endnote %}

> flat

{% note 'default flat' %}
Default note.

{% endnote %}

{% note 'primary flat' 'fas fa-circle-minus' %}
Primary note with icon.
{% endnote %}

{% note 'success flat' 'fas fa-circle-check' %}
Success note with icon.
{% endnote %}

{% note 'info flat' 'fas fa-circle-info' %}
Info note with icon.
{% endnote %}

{% note 'warning flat' 'fas fa-circle-xmark' %}
Warning note with icon.
{% endnote %}

{% note 'danger flat' 'fas fa-circle-exclamation' %}
Danger note with icon.
{% endnote %}

> simple

{% note 'default simple' %}
Default note.

{% endnote %}

{% note 'primary simple' 'fas fa-circle-minus' %}
Primary note with icon.
{% endnote %}

{% note 'success simple' 'fas fa-circle-check' %}
Success note with icon.
{% endnote %}

{% note 'info simple' 'fas fa-circle-info' %}
Info note with icon.
{% endnote %}

{% note 'warning simple' 'fas fa-circle-xmark' %}
Warning note with icon.
{% endnote %}

{% note 'danger simple' 'fas fa-circle-exclamation' %}
Danger note with icon.
{% endnote %}

> modern

{% note 'default modern' %}
Default note.

{% endnote %}

{% note 'primary modern' 'fas fa-circle-minus' %}
Primary note with icon.
{% endnote %}

{% note 'success modern' 'fas fa-circle-check' %}
Success note with icon.
{% endnote %}

{% note 'info modern' 'fas fa-circle-info' %}
Info note with icon.
{% endnote %}

{% note 'warning modern' 'fas fa-circle-xmark' %}
Warning note with icon.
{% endnote %}

{% note 'danger modern' 'fas fa-circle-exclamation' %}
Danger note with icon.
{% endnote %}

Button

1
{% button 'icon' 'content' 'url' %}
  1. ‘icon’: The icon name (full name, e.g., “fas fa-github”).
  2. ‘content’: The content of the button.
  3. ‘url’: The URL of the button.



1
2
{% button 'fab fa-github' 'GitHub' 'https://github.com' %}
{% button 'fas fa-home' 'Home' '/' %}

Repo

1
2
3
4
{% github 'owner/repo' %}
{% gitlab 'projectID' %}
{% gitee 'owner/repo' %}
{% gitea 'server' 'owner/repo' %}
  1. ‘owner’: The owner of the repository.
  2. ‘repo’: The name of the repository.
  3. ‘projectID’: The ID of the project.
  4. ‘server’: The server address of the repository.

1
2
3
{% github 'everfu/hexo-theme-solitude' %}
{% gitlab '56198505' %}
{% gitee 'everfu/hexo-theme-solitude' %}