https://github.com/pk5ls20/hexo-bilibili-plus
仅需BV号/AV号,方便的hexo页面中嵌入bilibili视频 | Embed bilibili video easily by using bvid or avid.
https://github.com/pk5ls20/hexo-bilibili-plus
bilibili hexo hexo-plugin
Last synced: about 1 month ago
JSON representation
仅需BV号/AV号,方便的hexo页面中嵌入bilibili视频 | Embed bilibili video easily by using bvid or avid.
- Host: GitHub
- URL: https://github.com/pk5ls20/hexo-bilibili-plus
- Owner: pk5ls20
- License: mit
- Created: 2023-01-31T04:14:52.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-31T05:32:17.000Z (about 2 years ago)
- Last Synced: 2024-06-14T19:41:32.236Z (10 months ago)
- Topics: bilibili, hexo, hexo-plugin
- Language: JavaScript
- Homepage:
- Size: 8.79 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
- License: LICENSE
Awesome Lists containing this project
- awesome-bilibili-extra - Hexo-bilibili-plus - 一个 hexo 插件,可以快速而方便的在 hexo 页面中嵌入 bilibili 视频. (相关插件 / 直播脚本)
README
# hexo-bilibili-plus  
A hexo plugin embed a bilibili video in your hexo article quickly and easily.一个hexo插件,可以快速而方便的在hexo页面中嵌入bilibili视频
## Install 安装
Run command `npm install hexo-bilibili-plus` in your hexo site path.在Hexo的博客目录下执行`npm install hexo-bilibili-plus`
## Preview 预览

You can view demo in the blog [here](https://liuqing.fun/2025/01/11/bilibili-exp/)可以在这个[博客](https://liuqing.fun/2025/01/11/bilibili-exp/)中查看demo
## Usage 使用
Insert `{%blil $VID $isAutoplay $isSimpleFrame %}` in your markdown file to use.
The `$VID` can be any vaild bvid (current video number in bilibili, like `BV14b4y1U7XX`) or avid (bilibili use it from 2009 to 2020, like`av170001`).
The `$isAutoplay` is an optional parameter, set to 1 to autoplay, default is 0.
The `$isSimpleFrame` is an optional parameter, if set to 1, the playback interface will be minimalist, default is 0.在文章的md文件中插入`{%blil $VID $isAutoplay $isSimpleFrame %}`来使用,`$VID`可以是bv号也可以是av号
`$isAutoplay`参数可选,设为1可开启自动播放,默认关闭
`$isSimpleFrame`参数可选,设为1可用极简界面播放,默认关闭`{%blil $VID %}` 等同于 `{%blil $VID 0 0 %}`
## References 参考
The reference content has been written in the source code.参考内容在源代码中已写明