Debian Codegraph @

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

raw
1 ---
2 title: transform.Emojify
3 description: Runs a string through the Emoji emoticons processor.
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 `emojify` runs a passed string through the Emoji emoticons processor.
15
16 See the list of [emoji shortcodes][] for available emoticons.
17
18 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;
19
20 ```md
21 I :heart: Hugo!
22 ```
23
24 I :heart: Hugo!
25
26 [`enableEmoji`]: /configuration/all/#enableemoji
27 [emoji shortcodes]: /quick-reference/emojis/