hexo-tag-embed
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

hexo-tag-embed

Tester 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

/hexo-tag-embed/

    Package Sidebar

    Install

    npm i hexo-tag-embed

    Homepage

    hexo.io/

    Weekly Downloads

    368

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    11.2 kB

    Total Files

    18

    Last publish

    Collaborators

    • ertrzyiks
    • abnerchou
    • tommy351
    • hexobot
    • jlhwung
    • tomap
    • curben
    • yoshinorin