github emojis for hexo! 🎉
Go to file
CRIMX b20ba676ac first commit 2016-12-22 19:11:28 +08:00
.gitignore first commit 2016-12-22 19:11:28 +08:00
.npmignore first commit 2016-12-22 19:11:28 +08:00
LICENSE first commit 2016-12-22 19:11:28 +08:00
README.md first commit 2016-12-22 19:11:28 +08:00
emojis.json first commit 2016-12-22 19:11:28 +08:00
index.js first commit 2016-12-22 19:11:28 +08:00
package.json first commit 2016-12-22 19:11:28 +08:00

README.md

hexo-filter-github-emojis

Build Status Coverage Status Npm Version Npm Downloads Month Npm Downloads Total License

A Hexo plugin that adds emoji support, using Github Emojis API.

Check out the Emoji Cheat Sheet for all the emojis it supports.

Installation

$ npm install hexo-filter-github-emojis --save

Options

You can configure this plugin in _config.yml. Default options:

githubEmojis:
  enable: true
  className: github-emoji
  localEmojis:

The filter will try to download the latest version of Github Emojis list. If the network is unavailable or too slow it will use the backup version.

  • className - Image class name. For :sparkles: the filter will generate something like this:

    <img class="github-emoji" title=":sparkles:" alt=":sparkles:" src="https://assets-cdn.github.com/images/icons/emoji/unicode/2728.png" height="20" width="20">
    
  • localEmojis - You can specify your own list. An object or JSON string is valid. The filter will first check the localEmojis then fallback to the Github Emojis list.

    For example:

    githubEmojis:
      localEmojis:
        arrow_left: https://path/tp/arrow_left.png
        arrow_right: https://path/tp/arrow_right.png