Home

Awesome

hexo-filter-emoji

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-emoji

Options

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

emoji:
  enable: true
  className: github-emoji
  styles:
  customEmojis:

Tag

If you do not like the ::-style keywords, you can always use tags:

{% emoji sparkles %}

Add no-emoji: true to front-matter to stop replacing :::

---
title: Hello World
no-emoji: true
---

:tada: as it is.

{% emoji tada %} still works.

Helper

You can also render a GitHub emoji from a template using the emoji helper:

<h1>{% emoji('octocat') %}</h1>