1.3 KiB
1.3 KiB
weight | title | date | lastmod | draft | author | authorLink | description | images | resources | tags | categories | hiddenFromHomePage | toc | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9 | Theme Documentation - bilibili Shortcode | 2020-03-03T11:29:41+08:00 | 2020-03-03T12:29:41+08:00 | false | Dillon | https://dillonzq.com | The bilibili shortcode embeds a responsive video player for bilibili videos. |
|
|
|
true |
|
{{< version 0.2.0 changed >}}
The bilibili
shortcode embeds a responsive video player for bilibili videos.
When the video only has one part, only the BV id
of the video is required, e.g.:
https://www.bilibili.com/video/BV1Sx411T7QQ
Example bilibili
input:
{{</* bilibili BV1Sx411T7QQ */>}}
Or
{{</* bilibili id=BV1Sx411T7QQ */>}}
The rendered output looks like this:
{{< bilibili id=BV1Sx411T7QQ >}}
When the video has multiple parts, in addition to the BV id
of the video,
p
is also required, whose default value is 1
, e.g.:
https://www.bilibili.com/video/BV1TJ411C7An?p=3
Example bilibili
input with p
:
{{</* bilibili BV1TJ411C7An 3 */>}}
Or
{{</* bilibili id=BV1TJ411C7An p=3 */>}}
The rendered output looks like this:
{{< bilibili id=BV1TJ411C7An p=3 >}}