mirror of
https://github.com/Wonderfall/hugo-WonderMod.git
synced 2024-11-26 20:41:37 +01:00
7 lines
3.5 KiB
HTML
7 lines
3.5 KiB
HTML
<!doctype html><html lang=en><head><meta charset=utf-8><meta http-equiv=x-ua-compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1,shrink-to-fit=no"><title>Emoji Support - Hugo Themes</title><meta name=description content="Emoji can be enabled in a Hugo project in a number of ways."><meta name=author content="Hugo Authors"><link href=https://adityatelange.github.io/hugo-PaperMod/css/stylesheet.min.4b3148ebe1961588ca3b3dc2fabfa171fd112a5ac7edacf75029a4e8f51c5b58.css integrity="sha256-SzFI6+GWFYjKOz3C+r+hcf0RKlrH7az3UCmk6PUcW1g=" rel=stylesheet><link href=https://adityatelange.github.io/hugo-PaperMod/custom.css rel=stylesheet><link rel=apple-touch-icon href=https://adityatelange.github.io/hugo-PaperMod/apple-touch-icon.png><link rel=icon href=https://adityatelange.github.io/hugo-PaperMod/favicon.ico><meta name=generator content="Hugo 0.74.2"></head><body class=single><header class=header><nav class=nav><p class=logo><a href=https://adityatelange.github.io/hugo-PaperMod/>Hugo Themes</a></p><ul class=menu><li><a href=/hugo-PaperMod/about/>About</a></li></ul></nav></header><main class=main><article class=post-single><header class=post-header><h1 class=post-title>Emoji Support</h1><div class=post-meta>Hugo Authors · March 5, 2019</div></header><div class=post-content><p>Emoji can be enabled in a Hugo project in a number of ways.</p><p>The <a href=https://gohugo.io/functions/emojify/><code>emojify</code></a> function can be called directly in templates or <a href=https://gohugo.io/templates/shortcode-templates/#inline-shortcodes>Inline Shortcodes</a>.</p><p>To enable emoji globally, set <code>enableEmoji</code> to <code>true</code> in your site’s <a href=https://gohugo.io/getting-started/configuration/>configuration</a> and then you can type emoji shorthand codes directly in content files; e.g.</p><p>The <a href=http://www.emoji-cheat-sheet.com/>Emoji cheat sheet</a> is a useful reference for emoji shorthand codes.</p><hr><p><strong>N.B.</strong> The above steps enable Unicode Standard emoji characters and sequences in Hugo, however the rendering of these glyphs depends on the browser and the platform. To style the emoji you can either use a third party emoji font or a font stack; e.g.</p><div class=highlight><pre style=color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-html data-lang=html>.emoji {
|
||
font-family: Apple Color Emoji, Segoe UI Emoji, NotoColorEmoji, Segoe UI Symbol, Android Emoji, EmojiSymbols;
|
||
}</code></pre></div><style>.emojify{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}}</style></div><footer class=post-footer><ul class=post-tags><li><a href=https://adityatelange.github.io/hugo-PaperMod/tags/emoji>emoji</a></li></ul></footer></article></main><footer class=footer><span>© 2020 <a href=https://adityatelange.github.io/hugo-PaperMod/>Hugo Themes</a></span>
|
||
<span>·</span>
|
||
<span>Powered by <a href=https://gohugo.io/ rel=noopener target=_blank>Hugo️️</a>️</span>
|
||
<span>·</span>
|
||
<span>Theme️ <a href=https://github.com/adityatelange/hugo-PaperMod rel=noopener target=_blank>PaperMod</a></span></footer><script src=https://adityatelange.github.io/hugo-PaperMod/js/highlight.min.min.1724e28c9e1aab0429e6941c5413732d007f823433926603784b64f455b53a35.js integrity="sha256-FyTijJ4aqwQp5pQcVBNzLQB/gjQzkmYDeEtk9FW1OjU="></script><script>hljs.initHighlightingOnLoad();</script></body></html> |