Embed bilibili videos in Hexo posts/pages
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
.travis.yml add doc Sep 19, 2015
LICENSE
README.md
index.js wrap the video with div Sep 21, 2015
package.json

README.md

hexo-tag-bilibili

Code Climate Embed bilibili videos in Hexo posts/pages

About

This is a Hexo tag plugin for embeded Bilibili videos in posts/pages

Installation

npm install --save hexo-tag-bilibili

Usage

The full tag format is as follows:

{% bilibili [av_id] %}
or
{% bilibili [av_id] [page] %}

example:

{% bilibili 2333333 3 %}

Configuration

You can configure the type, autoplay and size in your main _config.yml:

Example configuration:

bilibili:
  width: 452
  height: 544

Style

The Video Clip is wrapped by a div with the class bili_video. You can modify it in your theme's css files.

License

Copyright (c) 2015, Z4Tech. Licensed under the MIT license.