kurisaW / kurisaW/kurisaW.github.io
[Video] 插入网络视频
- Dominant language
- Dockerfile
- Stars
- 1
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
## 嵌入[哔哩哔哩](https://www.bilibili.com/)视频。
```
{{< bilibili VIDEO_ID PART_NUMBER >}}
```
`Video_ID`:在视频的URL中可以找到。
例如https://www.bilibili.com/video/av12345678为`av12345678`。AV和均受BV支持。
PART_NUMBER是可选的。它可用于指定要播放的视频部分。例如,零件号https://www.bilibili.com/video/av12345678?p=2是2。
## 嵌入[YouTube](https://www.youtube.com/)视频。
```
{{< youtube VIDEO_ID >}}
```
Video_ID:在视频的URL中可以找到。例如视频IDhttps://www.youtube.com/watch?v=VIDEO_ID为VIDEO_ID。
## 嵌入通用视频文件
```
{{< video VIDEO_URL >}}
{{< video src="VIDEO_URL" autoplay="true" poster="./video-poster.png" >}}
```
VIDEO_URL可以是一个URL或相对于静态目录的一个路径。例如,src="/video/my-video.mp4 "将嵌入您网站文件夹的视频文件static/video/my-video.mp4。
自动播放属性是可选的。它可以用来指定视频是否应该被自动播放。海报属性是可选的。它可以用来指定视频的海报图像。
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating the Hugo shortcode entry points used by this site and review how content shortcodes are currently organized. Check the documented bilibili, YouTube, and generic video forms against Hugo's rendering behavior. Done means the listed shortcode forms embed the requested videos, including optional parts and attributes, without breaking existing pages.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- hugo
- Domain
- web-dev
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100