9 lines
4.4 KiB
HTML

<!doctype html><html lang=en-US><head><meta http-equiv=X-Clacks-Overhead content="GNU Terry Pratchett"><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><link rel="shortcut icon" href=https://clente.github.io/hugo-bearcub/images/favicon.png><title>Emoji Support | Bear Cub</title>
<meta name=title content="Emoji Support"><meta name=description content="Guide to emoji usage in Hugo"><meta name=keywords content="emoji,"><meta property="og:title" content="Emoji Support"><meta property="og:description" content="Guide to emoji usage in Hugo"><meta property="og:type" content="article"><meta property="og:url" content="https://clente.github.io/hugo-bearcub/blog/emoji-support/"><meta property="og:image" content="https://clente.github.io/hugo-bearcub/images/social_card_bg_hu24b6b25ef60ca259d3d1b88ebbfdfb28_6698_89261463fd30a994c2fdf945bad8ab7a.webp"><meta property="article:section" content="blog"><meta property="article:published_time" content="2019-03-05T00:00:00+00:00"><meta property="article:modified_time" content="2019-03-05T00:00:00+00:00"><meta property="og:site_name" content="Bear Cub"><meta property="fb:admins" content="0000000000"><meta name=twitter:card content="summary_large_image"><meta name=twitter:image content="https://clente.github.io/hugo-bearcub/images/social_card_bg_hu24b6b25ef60ca259d3d1b88ebbfdfb28_6698_89261463fd30a994c2fdf945bad8ab7a.webp"><meta name=twitter:title content="Emoji Support"><meta name=twitter:description content="Guide to emoji usage in Hugo"><meta name=twitter:site content="@example"><meta itemprop=name content="Emoji Support"><meta itemprop=description content="Guide to emoji usage in Hugo"><meta itemprop=datePublished content="2019-03-05T00:00:00+00:00"><meta itemprop=dateModified content="2019-03-05T00:00:00+00:00"><meta itemprop=wordCount content="124"><meta itemprop=image content="https://clente.github.io/hugo-bearcub/images/social_card_bg_hu24b6b25ef60ca259d3d1b88ebbfdfb28_6698_89261463fd30a994c2fdf945bad8ab7a.webp"><meta itemprop=keywords content="emoji,"><meta name=referrer content="no-referrer-when-downgrade"><link href=/hugo-bearcub/original.min.css rel=stylesheet><link href=/hugo-bearcub/syntax.min.css rel=stylesheet></head><body><header><a class=skip-link href=#main-content>Skip to main content</a>
<a href=/hugo-bearcub class=title><h1>Bear Cub</h1></a><nav><a href=/hugo-bearcub/>Home</a>
<a href=/hugo-bearcub/blog/>Blog</a>
<a href=https://clente.github.io/hugo-bearcub/index.xml>RSS</a>
<a class=disabled role=link aria-disabled=true>pt-BR 🇧🇷</a></nav></header><main id=main-content><h1>Emoji Support</h1><p class=byline><time datetime=2019-03-05 pubdate>2019-03-05
</time>· Hugo Authors</p><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&rsquo;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 tabindex=0 class=chroma><code class=language-html data-lang=html><span class=line><span class=ln>1</span><span class=cl>.emoji {
</span></span><span class=line><span class=ln>2</span><span class=cl> font-family: Apple Color Emoji, Segoe UI Emoji, NotoColorEmoji, Segoe UI Symbol, Android Emoji, EmojiSymbols;
</span></span><span class=line><span class=ln>3</span><span class=cl>}</span></span></code></pre></div></content><p><a class=blog-tags href=https://clente.github.io/hugo-bearcub/tags/emoji/>#emoji</a></p><p><a href='mailto:me@example.com?subject=Reply%20to%20"Emoji%20Support"'>Reply to this post by email ↪</a></p></main><footer><small>John Doe (CC BY 4.0) | Made with <a href=https://github.com/clente/hugo-bearcub>Bear Cub</a></small></footer></body></html>