hexo-tag-rage-face

1.0.1 • Public • Published

Hexo Rage Face Tag

Hexo tag support for pulling rage faces.

How to install

npm install hexo-tag-rage-face --save

At runtime Hexo will detect it in your package.json and load it.

How to use

Add this to your blog post:

{% rage_face 'U mad troll' style:width:300px %}

Result:

troll

You can add more attributes to the tag using key:value pattern. If the value has whitespaces you can quote the whole pair like 'key:value'.

How it works:

  1. Converts name input to snake case
  2. Polls memes.at to see if there is a matching image using .jpg, .gif, .png, one attempt after another.
  3. Uses the one found or displays nothing so your post won't be broken.

Limitations

  1. Extension list is hard-coded for now.
  2. Source site url is hard-coded.

/hexo-tag-rage-face/

    Package Sidebar

    Install

    npm i hexo-tag-rage-face

    Weekly Downloads

    1

    Version

    1.0.1

    License

    none

    Unpacked Size

    5.51 kB

    Total Files

    5

    Last publish

    Collaborators

    • shawnxu