emojify.md (1030B)
1 ---
2 title: emojify
3 description: Runs a string through the Emoji emoticons processor.
4 date: 2017-02-01
5 publishdate: 2017-02-01
6 lastmod: 2017-02-01
7 categories: [functions]
8 menu:
9 docs:
10 parent: "functions"
11 keywords: [strings,emojis]
12 signature: ["emojify INPUT"]
13 workson: []
14 hugoversion:
15 relatedfuncs: []
16 deprecated: false
17 ---
18
19 `emoji` runs a passed string through the Emoji emoticons processor.
20
21 See the [Emoji cheat sheet][emojis] for available emoticons.
22
23 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 site's [configuration][config]. Then you can write emoji shorthand directly into your content files; e.g. <code>I :</code><code>heart</code><code>: Hugo!</code>:
24
25 I :heart: Hugo!
26
27
28 [config]: /getting-started/configuration/
29 [emojis]: https://www.webfx.com/tools/emoji-cheat-sheet/
30 [sc]: /templates/shortcode-templates/
31 [scsource]: https://github.com/gohugoio/hugo/tree/master/docs/layouts/shortcodes