How Interesting...
July 15, 2016

Emoji Support in Hugo

Posted on July 15, 2016  •  1 minutes  • 151 words
Table of contents

Emoji can be enabled in a Hugo site in a couple of different of ways.

The <code>emojify</code> function can be called directly in templates or Inline Shortcodes .

To enable emoji globally, set enableEmoji to true in your site’s configuration

In this blog’s theme, the following line is simply added to the config.toml:

1enableEmoji = true

Then you can type emoji shorthand codes directly in content files; e.g.

๐Ÿ™ˆ :see_no_evil: ๐Ÿ™‰ :hear_no_evil: ๐Ÿ™Š :speak_no_evil:

Tip 🚀

The Emoji cheat sheet hosted at is a great reference for emoji shortcodes:

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.

1.emoji {
2font-family: Apple Color Emoji, Segoe UI Emoji, NotoColorEmoji, Segoe UI Symbol, Android Emoji, EmojiSymbols;
Socials / Links

I tweet tech, bad jokes and silly memes