Shortcodes
文章目录
Admonition
I'm title!
biu biu biu.note
biu biu biu.
Without title.
|
|
abstract
biu biu biu.
|
|
info
biu biu biu.tip
biu biu biu.success
biu biu biu.question
biu biu biu.warning
biu biu biu.failure
biu biu biu.danger
biu biu biu.bug
biu biu biu.example
biu biu biu.quote
biu biu biu.center, right, left
|
|
default
## center
![img](https://wx1.sinaimg.cn/small/006SToa6ly1fm07summ2gj30qo0qomzu.jpg "img")
## right
![img](https://wx1.sinaimg.cn/small/006SToa6ly1fm07summ2gj30qo0qomzu.jpg "img")
## left
![img](https://wx1.sinaimg.cn/small/006SToa6ly1fm07summ2gj30qo0qomzu.jpg "img")
figure with class
1 2 3 4 |
{{% figure src="/path/to/img.gif" title="default" alt="img" %}} {{% figure class="center" src="/path/to/img.gif" title="center" alt="img" %}} {{% figure class="right" src="/path/to/img.gif" title="right" alt="img" %}} {{% figure class="left" src="/path/to/img.gif" title="left" alt="img" %}} |
1 2 3 4 5 6 7 8 9 10 11 |
{{% center %}} ## hybrid in center {{% figure src="/path/to/img.gif" title="default" alt="img" %}} {{% figure class="right" src="/path/to/img.gif" title="right" alt="img" %}} {{% left %}} {{% figure src="/path/to/img.gif" title="default in left" alt="img" %}} {{% /left %}} {{% /center %}} |
## hybrid in center
Music 163
Params
id
- required param
- you can extract from music url
- url format http://music.163.com/#/song?id=28196554
Fiddle
auto
- optional param
- default value 0
- you can overwrite it with 1
Examples
Simple
1 2
{{% music "28196554" %}} {{% music "28196554" "1" %}}
Named Params
1 2
{{% music id="28196554" %}} {{% music id="28196554" auto="1" %}}
Example
1
{{% music "28196554" %}}
{{% music “28196554” %}}
文章作者 shengli
上次更新 2018-02-01