Custom shortcode example
Although the Markdown syntax is already very rich and can meet the vast majority of our writing needs, in order to better layout the content of the article in a more friendly way, a set of custom phrases has been designed for citation, which can be quickly referenced when used.
Block reference
When quoting some classic quotes, this phrase can be used. The grammar reference is as follows:
Actual effect:
Hope is indifferent to existence, indifferent to nothingness, just like the road on earth.
In fact, there is no road on the ground, and with more people walking, it becomes a road.
Lu Xun
Information Block
Support ‘default’` The presentation of five different effects, including info, success, warning, and danger, with the following syntax reference:
Actual effect:
Default Header
Welcome to Hugo NexT!
Primary Header
Welcome to Hugo NexT!
Info Header
Welcome to Hugo NexT!
Success Header
Welcome to Hugo NexT!
Warning Header
Welcome to Hugo NexT!
Danger Header
Welcome to Hugo NexT!
Bilibili video
Music player
Based on Player And MatingJS The library implements a responsive music player embedded in the meeting, with automatically recognized music platform URLs, including:` Netease, Tencent, Kugou, Baidu, and Xiami platforms also support user-defined music sources. Other relevant parameter explanations are as follows:
| Parameter Name | Default | Description |
|---|---|---|
| id | Required | Music ID, which is the unique identifier of the music on the music platform |
| server | Required | Music platform, supports netease、 tencent、 kugou、 baidu and xiami |
| type | Required | Play type, currently supports song 、 playlist、 album、 search and artist |
| auto | Optional | Music address, only supports the platform in the server parameter |
| theme | #448aff | The theme color of the player defaults to #448aff |
| url | Empty | Custom music source URL, default to empty |
| name | Empty | Music name, default to empty |
| artist | Empty | Music author, default to empty |
| cover | Empty | Music cover URL, default to empty |
| fixed | false | Fixed player, default to false |
| mini | false | Display mini player, default to false |
| autoplay | false | Autoplay the music, default to false |
| loop | all | Loop playback, supports all、one and none,default to all |
| order | list | Play order list and random,default to list |
| volume | 0.7 | Volume, default is 0.7 |
| mutex | true | When multiple pieces of music are playing, should only the current player be turned on,default to true |
| list-folded | false | List collapse, default is false |
| list-max-height | 340px | The maximum height of the list is 340px by default |
Single playback
| |
List playback
| |
Customize music source
| |