Tag Plugins
Tabs
1 | {% tabs [Unique name] [index] %} |
- [Unique name]: The unique name for each tab block, without commas.
- It will be used as a prefix for the #id of each tab and its index number.
- If the name contains spaces, all spaces will be replaced with hyphens in the generated #id.
- The current URL of the post/page must be unique!
- [index]: The index number of the active tab.
- If not specified, the first tab will be selected (1).
- If the index is -1, no tab will be selected. This will be a spoiler.
- Optional parameter.
- [Tab caption]: The title of the current tab.
- If not specified, the unique name with the tab index suffix will be used as the tab title.
- If no title is specified but an icon is specified, the title will be empty.
- Optional parameter.
- [@icon]: The icon name (full name, e.g., “fas fa-github”).
- Spaces can be specified with or without spaces; for example, “Tab caption @icon” is similar to “Tab caption@icon”.
- Optional parameter.
Demo 1 - Default, selects the first tab by default
This is Tab 1.
This is Tab 2.
This is Tab 3.
Demo 2 - No default selection
This is Tab 1.
This is Tab 2.
This is Tab 3.
Demo 3 - Custom tab names + icon + tab names and icons
This is Tab 1.
This is Tab 2.
This is Tab 3.
Demo 1 - Default, selects the first tab by default
1 |
|
Demo 2 - No default selection
1 | {% subtabs Demo2 %} |
Demo 3 - Custom tab names + icon + tab names and icons
1 | {% subtabs Demo3 %} |
mermaid
Using the
mermaid tag
allows you to create Flowcharts, Sequence diagrams, Class Diagrams, State Diagrams, Gantt Charts, and Pie Charts. For more details, refer to the mermaid documentation.
If you are using gulp, make sure to close the pages that have used mermaid. Refer to the documentation for more details.
- Enable the switch in the theme configuration file
1 | mermaid: true |
1 | {% mermaid %} |
1 | {% mermaid %} |
Photo Gallery
1 | <div class="gallery-group-main"> |
1 | <div class="gallery-group-main"> |
Gallery
- Tag syntax
1
2
3{% gallery %}
markdown content
{% endgallery %} - Preview
- Code
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16{% gallery %}
![](https://s3.qjqq.cn/47/661f3f3ce9415.webp!color)
![](https://s3.qjqq.cn/47/661f3f76a0233.webp!color)
![](https://s3.qjqq.cn/47/661f3f96048cf.webp!color)
![](https://s3.qjqq.cn/47/661f3fb392fb9.webp!color)
![](https://s3.qjqq.cn/47/661f3fcd06662.webp!color)
![](https://s3.qjqq.cn/47/661f3fe838050.webp!color)
![](https://s3.qjqq.cn/47/661f4001816f0.webp!color)
![](https://s3.qjqq.cn/47/661f3f3ce9415.webp!color)
![](https://s3.qjqq.cn/47/661f3f76a0233.webp!color)
![](https://s3.qjqq.cn/47/661f3f96048cf.webp!color)
![](https://s3.qjqq.cn/47/661f3fb392fb9.webp!color)
![](https://s3.qjqq.cn/47/661f3fcd06662.webp!color)
![](https://s3.qjqq.cn/47/661f3fe838050.webp!color)
![](https://s3.qjqq.cn/47/661f4001816f0.webp!color)
{% endgallery %}
Chart.js
Enable the switch in the theme configuration file
1 | chart: true |
1 | {% chartjs %} |
1 | {% chart %} |
Typeit
Enable the switch in the theme configuration file
1 | typeit: true |
1 | {% typeit 'h1' '{ |
1 | {% typeit 'h1' '{ |
Article
1 | {% article 'path' %} |
1 | {% article 'posts/ad1f5ca2.html' %} |
- Thank you for your appreciation.