Files
hugo/content/functions/emojify.md
T
Bud Parr 7fd64f19c8 Merge bp/theme-design branch containing Bud Parr's new design
It's a beautiful thing. A thousand thanks, Bud.

See PR rdwatters/hugo-docs-concept#118
2017-05-26 14:25:22 -05:00

1.2 KiB

title, linktitle, description, godocref, date, publishdate, lastmod, categories, menu, tags, ns, signature, workson, hugoversion, relatedfuncs, deprecated
title linktitle description godocref date publishdate lastmod categories menu tags ns signature workson hugoversion relatedfuncs deprecated
emojify Runs a string through the Emoji emoticons processor. 2017-02-01 2017-02-01 2017-02-01
functions
docs
parent
functions
strings
emojis
emojify INPUT
false

emoji runs a passed string through the Emoji emoticons processor. The result will be declared as "safe" to prevent Go templates from filtering it as unsafe HTML.

See the Emoji cheat sheet for available emoticons.

The emojify function can be called in your templates but not directly in your content files by default. To add emojis directly into content without further templating or shortcode considerations, set enableEmoji to true in your site's configuration.

Example

When enabled, you can write emoji shorthand directly into your content files; e.g. I :heart: Hugo!:

I ❤️ Hugo!