2019-10-21 04:22:28 -04:00
---
2023-10-20 03:42:39 -04:00
title: transform.Emojify
linkTitle: emojify
2019-10-21 04:22:28 -04:00
description: Runs a string through the Emoji emoticons processor.
categories: [functions]
2023-10-20 03:42:39 -04:00
keywords: []
2019-10-21 04:22:28 -04:00
menu:
docs:
2023-05-22 10:43:12 -04:00
parent: functions
2023-10-20 03:42:39 -04:00
function:
aliases: [emojify]
returnType: template.HTML
signatures: [transform.Emojify INPUT]
namespace: transform
relatedFunctions: []
aliases: [/functions/emojify]
2019-10-21 04:22:28 -04:00
---
2022-12-02 03:19:23 -05:00
`emojify` runs a passed string through the Emoji emoticons processor.
2019-10-21 04:22:28 -04:00
See the [Emoji cheat sheet][emojis] for available emoticons.
2023-07-29 05:15:54 -04:00
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]. Then you can write emoji shorthand directly into your content files; e.g. < code > I :</ code >< code > heart</ code >< code > : Hugo!</ code > :
2019-10-21 04:22:28 -04:00
I :heart: Hugo!
2023-07-29 05:15:54 -04:00
[configuration]: /getting-started/configuration/
2019-10-21 04:22:28 -04:00
[emojis]: https://www.webfx.com/tools/emoji-cheat-sheet/
[sc]: /templates/shortcode-templates/
[scsource]: https://github.com/gohugoio/hugo/tree/master/docs/layouts/shortcodes