IT 紀錄網站

Don't stop running forward!


  • 首頁

  • archive

  • 關於我

  • Search

支持Emoji表情符号

Published at: 2019/03/05 | Words: 143 words | Reading: 1 minutes | Visited:

在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#
comments powered by Disqus >
Elkan.Li

Elkan.Li

Never forget your dreams!

0 Blogs
18 Categories
26 Tags
GitHub ZhiHu
Links
  • Nutz
  • JFinal
  • Wendal
  • LiaoXueFeng
TagCloud
  • Windows
  • Centos
  • Centos 7
  • Linux
  • Markdown
  • Rocky linux
  • Anti virus
  • Bareos
  • Chrony
  • Css
© 2010 - 2022 IT 紀錄網站
Powered by - Hugo v0.92.2 / Theme by - NexT
/
0%