Debian Codegraph @

docs/content/en/functions/transform/Emojify.md

raw
1 ---
2 title: transform.Emojify
3 description: Returns the given string with emoji shortcodes replaced by their corresponding emoji characters.
4 categories: []
5 keywords: []
6 params:
7 functions_and_methods:
8 aliases: [emojify]
9 returnType: template.HTML
10 signatures: [transform.Emojify INPUT]
11 aliases: [/functions/emojify]
12 ---
13
14 See the list of [emoji shortcodes][] for available emoticons.
15
16 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;
17
18 ```md
19 I :heart: Hugo!
20 ```
21
22 I :heart: Hugo!
23
24 [`enableEmoji`]: /configuration/all/#enableemoji
25 [emoji shortcodes]: /quick-reference/emojis/