Something went wrong. Try again.
Sample Portfolio Website using HUGO decoded-cipher.github.io
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242<!DOCTYPE html><html lang="en">
<head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="Content-Language" content="en"> <meta name="color-scheme" content="light dark">
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests; block-all-mixed-content; default-src 'self'; child-src 'self'; font-src 'self' https://fonts.gstatic.com https://cdn.jsdelivr.net/; form-action 'self'; frame-src 'self'; img-src 'self'; object-src 'none'; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com/ https://cdn.jsdelivr.net/; script-src 'self' 'unsafe-inline' https://www.google-analytics.com; prefetch-src 'self'; connect-src 'self' https://www.google-analytics.com;">
<meta name="author" content="Arjun Krishna"> <meta name="description" content="Guide to emoji usage in Hugo"> <meta name="keywords" content="blog,developer,personal">
<meta name="twitter:card" content="summary"/><meta name="twitter:title" content="Emoji Support"/><meta name="twitter:description" content="Guide to emoji usage in Hugo"/>
<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://decoded-cipher.github.io/posts/emoji-support/" /><meta property="article:section" content="posts" /><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" />
<title> Emoji Support · decoded-cipher</title>
<link rel="canonical" href="https://decoded-cipher.github.io/posts/emoji-support/">
<link rel="preload" href="/fonts/forkawesome-webfont.woff2?v=1.2.0" as="font" type="font/woff2" crossorigin>
<link rel="stylesheet" href="/css/coder.min.93c41bf1e522f85ecda7355985f09000f71fc1d64dda9f74051b0fa06210e93f.css" integrity="sha256-k8Qb8eUi+F7NpzVZhfCQAPcfwdZN2p90BRsPoGIQ6T8=" crossorigin="anonymous" media="screen" />
<link rel="stylesheet" href="/css/coder-dark.min.f37febc669ce189201c1918fac1948a254686c8d366a312c2d72b2bb71ad97d1.css" integrity="sha256-83/rxmnOGJIBwZGPrBlIolRobI02ajEsLXKyu3Gtl9E=" crossorigin="anonymous" media="screen" />
<link rel="icon" type="image/png" href="/images/favicon-32x32.png" sizes="32x32"> <link rel="icon" type="image/png" href="/images/favicon-16x16.png" sizes="16x16">
<link rel="apple-touch-icon" href="/images/apple-touch-icon.png"> <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon.png">
<meta name="generator" content="Hugo 0.84.0" /> </head>
<body class="preload-transitions colorscheme-auto" onload="" > <div class="float-container"> <a id="dark-mode-toggle" class="colorscheme-toggle"> <i class="fa fa-adjust fa-fw" aria-hidden="true"></i> </a></div>
<main class="wrapper"> <nav class="navigation"> <section class="container"> <a class="navigation-title" href="/"> decoded-cipher </a> <input type="checkbox" id="menu-toggle" /> <label class="menu-button float-right" for="menu-toggle"> <i class="fa fa-bars fa-fw" aria-hidden="true"></i> </label> <ul class="navigation-list"> <li class="navigation-item"> <a class="navigation-link" href="/about/">About</a> </li> <li class="navigation-item"> <a class="navigation-link" href="/posts/">Blog</a> </li> <li class="navigation-item"> <a class="navigation-link" href="/projects/">Projects</a> </li> <li class="navigation-item"> <a class="navigation-link" href="/contact/">Contact me</a> </li> </ul> </section></nav>
<div class="content"> <section class="container post"> <article> <header> <div class="post-title"> <h1 class="title"> <a class="title-link" href="https://decoded-cipher.github.io/posts/emoji-support/"> Emoji Support </a> </h1> </div> <div class="post-meta"> <div class="date"> <span class="posted-on"> <i class="fa fa-calendar" aria-hidden="true"></i> <time datetime='2019-03-05T00:00:00Z'> March 5, 2019 </time> </span> <span class="reading-time"> <i class="fa fa-clock-o" aria-hidden="true"></i> One-minute read </span> </div> <div class="tags"> <i class="fa fa-tag" aria-hidden="true"></i> <span class="tag"> <a href="/tags/emoji/">emoji</a> </span></div>
</div> </header>
<div> <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><!-- raw HTML omitted --><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="background-color:#fff;-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> </div>
<footer>
</footer> </article>
</section>
</div>
<footer class="footer"> <section class="container"> <p>Enter a text here.</p> © 2019 - 2021 Arjun Krishna · Powered by <a href="https://gohugo.io/">Hugo</a> & <a href="https://github.com/luizdepra/hugo-coder/">Coder</a>. </section> </footer>
</main>
<script src="/js/coder.min.235666b114443867d43eeb5799d51f6252965e5163f338285e113fa381d3d27e.js" integrity="sha256-I1ZmsRREOGfUPutXmdUfYlKWXlFj8zgoXhE/o4HT0n4="></script>
</body>
</html>