北天的个人博客

始终相信,每一个艰难的脚步,都会使我们的终点更高


  • 首页

  • 归档

  • 关于我

  • 公益404

  • 搜索

支持Emoji表情符号

时间: 2019-03-05 | 字数: 143 字 | 阅读: 1分钟 | 阅读次数:

在Hugo项目中可以通过多种方式启用Emoji。

The emojify function can be called directly in templates or Inline Shortcodes.

To enable emoji globally, set enableEmoji to true in your site’s configuration and then you can type emoji shorthand codes directly in content files; e.g.

馃檲 🙈 馃檳 🙉 馃檴 🙊


The Emoji cheat sheet is a useful reference for emoji shorthand codes.


N.B. The above steps enable Unicode Standard emoji characters and sequences in Hugo, however the rendering of these glyphs depends on the browser and the platform. To style the emoji you can either use a third party emoji font or a font stack; e.g.

.emoji {
  font-family: Apple Color Emoji, Segoe UI Emoji, NotoColorEmoji, Segoe UI Symbol, Android Emoji, EmojiSymbols;
}
#emoji#
QQ扫一扫交流

声明:支持Emoji表情符号

链接:https://mimanchi01.github.io/post/other_matters/emoji-support/

作者:-北天-

声明: 本博客文章除特别声明外,均采用 CC BY-NC-SA 3.0许可协议,转载请注明出处!

创作实属不易,如有帮助,那就打赏博主些许茶钱吧 ^_^
WeChat Pay

微信打赏

Alipay

支付宝打赏

数据公式设置显示
-北天-

-北天-

一个平平无奇的程序员和3D建模小白,热爱健身,热爱生活

11 日志
3 分类
8 标签
微信:beitiantian_nana QQ Github CSDN
友情链接
  • 数字孪生平台
  • 和平精英绿洲仓库
  • 程序员导航
  • 我家老婆
标签云
  • Python
  • Markdown
  • Css
  • Emoji
  • HTML
  • Privacy
  • Shortcodes
  • Text
© 2010 - 2022 北天的个人博客
Powered by - Hugo v0.92.1 / Theme by - NexT
/
Storage by GitHub / Written by 北天
0%