前言

让你的 Hexo Markdown 编辑器支持 Emoji 表情

安装

安装Hexo插件 hexo-filter-github-emojis

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

编辑站点配置文件_config.yml增加配置项:

1
2
3
4
5
6
7
8
# hexo-filter-github-emojis
## https://github.com/crimx/hexo-filter-github-emojis
githubEmojis:
enable: true
className: github-emoji
inject: true
styles:
customEmojis:

在编写博客文章的时候,可以参考下面的 EMOJI CHEAT SHEET 把对应的表情代码复制到文章中。

这样就可以愉快地在hexo博客中使用 emoji 拉。

:hatching_chick: -> 🐣

参考链接