diff --git a/content/overview/configuration.md b/content/overview/configuration.md index 18f4b14bd..600e420d7 100644 --- a/content/overview/configuration.md +++ b/content/overview/configuration.md @@ -99,6 +99,9 @@ Following is a list of Hugo-defined variables that you can configure and their c disableRobotsTXT: false # edit new content with this editor, if provided editor: "" + # Enable Emoji emoticons support for page content. + # See www.emoji-cheat-sheet.com + enableEmoji: false footnoteAnchorPrefix: "" footnoteReturnLinkContents: "" # google analytics tracking id diff --git a/content/templates/functions.md b/content/templates/functions.md index 8637656e3..224f5d1ff 100644 --- a/content/templates/functions.md +++ b/content/templates/functions.md @@ -413,6 +413,14 @@ These are formatted with the layout string. e.g. `{{ dateFormat "Monday, Jan 2, 2006" "2015-01-21" }}` → "Wednesday, Jan 21, 2015" +### emojify + +Runs the string through the Emoji emoticons processor. The result will be declared as "safe" so Go templates will not filter it. + +See the [Emoji cheat sheet](http://www.emoji-cheat-sheet.com/) for available emoticons. + +e.g. `{{ "I :heart: Hugo" | emojify }}` + ### highlight Takes a string of code and a language, uses Pygments to return the syntax highlighted code in HTML. Used in the [highlight shortcode](/extras/highlighting/).