Skip to content

hexojs/hexo-tag-embed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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