Shortcodes
文章目录
center, right, left
## default
![img](/path/to/img.gif "img")
{{% center %}}
## center
![img](/path/to/img.gif "img")
{{% /center %}}
{{% right %}}
## right
![img](/path/to/img.gif "img")
{{% /right %}}
{{% left %}}
## left
![img](/path/to/img.gif "img")
{{% /left %}}
default
center
right
left
figure with class
{{% 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" %}}
{{% 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
{{% music "28196554" %}}
{{% music "28196554" "1" %}}
- Named Params
{{% music id="28196554" %}}
{{% music id="28196554" auto="1" %}}
- Example
{{% music "28196554" %}}
文章作者 上海大易
上次更新 2018-02-01