Loving life and dreams.

Don't stop running forward!


  • Home

  • Java

  • Python

  • Ansible

  • Archive

  • About

  • Page404

  • Search

Emoji Support

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

Emoji can be enabled in a Hugo project in a number of ways.

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 QrCode

Title:Emoji Support

Link:https://www.hyouka.top/en/post/emoji-support/

Author:Elkan.Li

Declaration: This blog post article is under the CC BY-NC-SA 3.0 license,Please indicate the source!

If it can help you, you can give tips for blogger that how much you want. ^_^
WeChat Pay

Wechat Pay

Alipay

Ali Pay

Math Typesetting
Elkan.Li

Elkan.Li

Never forget your dreams!

4 Blogs
2 Categories
5 Tags
GitHub ZhiHu
Links
  • Nutz
  • JFinal
  • Wendal
  • LiaoXueFeng
TagCloud
  • Markdown 2
  • Css 1
  • Emoji 1
  • HTML 1
  • Text 1
© 2010 - 2023 Loving life and dreams.
Powered by - Hugo v0.92.2 / Theme by - NexT
/
Storage by UCloud Storage /
0%