HUGO
Menu
GitHub 89803 stars Mastodon

transform.Emojify

Returns the given string with emoji shortcodes replaced by their corresponding emoji characters.
Syntax
transform.Emojify INPUT
Returns
template.HTML
Alias
emojify

See the list of emoji shortcodes for available emoticons.

The emojify function can be called in your templates but not directly in your content files by default. For emojis in content files, set enableEmoji to true in your project configuration. Then you can write emoji shorthand directly into your content files;

I :heart: Hugo!

I ❤️ Hugo!