| | |
| | | <!--more--> |
| | | The [`emojify`](https://gohugo.io/functions/emojify/) function can be called directly in templates or [Inline Shortcodes](https://gohugo.io/templates/shortcode-templates/#inline-shortcodes). |
| | | |
| | | To enable emoji globally, set `enableEmoji` to `true` in your siteβs [configuration](https://gohugo.io/getting-started/configuration/) and then you can type emoji shorthand codes directly in content files; e.g. |
| | | |
| | | To enable emoji globally, set `enableEmoji` to `true` in your site's [configuration](https://gohugo.io/getting-started/configuration/) and then you can type emoji shorthand codes directly in content files; e.g. |
| | | |
| | | <p><span class="nowrap"><span class="emojify">π</span> <code>:see_no_evil:</code></span> <span class="nowrap"><span class="emojify">π</span> <code>:hear_no_evil:</code></span> <span class="nowrap"><span class="emojify">π</span> <code>:speak_no_evil:</code></span></p> |
| | | <br> |
| | |
| | | |
| | | {{< highlight html >}} |
| | | .emoji { |
| | | font-family: Apple Color Emoji,Segoe UI Emoji,NotoColorEmoji,Segoe UI Symbol,Android Emoji,EmojiSymbols; |
| | | font-family: Apple Color Emoji, Segoe UI Emoji, NotoColorEmoji, Segoe UI Symbol, Android Emoji, EmojiSymbols; |
| | | } |
| | | {{< /highlight >}} |
| | | |
| | | {{< css.inline >}} |
| | | <style> |
| | | .emojify { |
| | | font-family: Apple Color Emoji,Segoe UI Emoji,NotoColorEmoji,Segoe UI Symbol,Android Emoji,EmojiSymbols; |
| | | font-family: Apple Color Emoji, Segoe UI Emoji, NotoColorEmoji, Segoe UI Symbol, Android Emoji, EmojiSymbols; |
| | | font-size: 2rem; |
| | | vertical-align: middle; |
| | | } |
| | | @media screen and (max-width:650px) { |
| | | .nowrap { |
| | | display: block; |
| | | margin: 25px 0; |
| | | } |
| | | .nowrap { |
| | | display: block; |
| | | margin: 25px 0; |
| | | } |
| | | } |
| | | </style> |
| | | {{< /css.inline >}} |