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
$ npm i hexo-tag-embed
To embed a Gist snippet:
{% gist gist_id [filename] %}
To embed a jsFiddle snippet:
{% jsfiddle shorttag [tabs] [skin] [width] [height] %}
Inserts a responsive or specified size Vimeo video.
{% vimeo video_id [width] [height] %}
Inserts a YouTube video.
{% youtube video_id [type] [cookie] %}
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 %}
MIT