Skip to content

Latest commit

 

History

History
85 lines (57 loc) · 1.55 KB

README.md

File metadata and controls

85 lines (57 loc) · 1.55 KB

hexo-tag-embed

CI NPM version Coverage Status

Warning

Please do not use this plugin with less than hexo v7.0.0.

Note

This plugin's features have been divided from https://github.com/hexojs/hexo

Installation

$ npm i hexo-tag-embed

Usage

Gist

To embed a Gist snippet:

{% gist gist_id [filename] %}

jsFiddle

To embed a jsFiddle snippet:

{% jsfiddle shorttag [tabs] [skin] [width] [height] %}

Vimeo

Inserts a responsive or specified size Vimeo video.

{% vimeo video_id [width] [height] %}

YouTube

Inserts a YouTube video.

{% youtube video_id [type] [cookie] %}

Examples

Embed a video

{% youtube lJIrF4YjHfQ %}

Embed a playlist

{% youtube PL9hW1uS6HUfscJ9DHkOSoOX45MjXduUxo 'playlist' %}

Enable privacy-enhanced mode

YouTube’s cookie is not used in this mode.

{% youtube lJIrF4YjHfQ false %}
{% youtube PL9hW1uS6HUfscJ9DHkOSoOX45MjXduUxo 'playlist' false %}

LICENSE

MIT