<!DOCTYPE html>
|
<html lang="en-us">
|
<head><meta charset="utf-8">
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
<title>Ticky Tacky Dark - Emoji Support</title>
|
<meta name="description" content="Guide to emoji usage in Hugo">
|
<meta name="author" content="Hugo Authors">
|
<link rel="icon" href="/ticky_tacky_dark/favicon.ico"><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://kc0bfv.github.io/ticky_tacky_dark/emoji-support/" /><meta property="og:image" content="https://kc0bfv.github.io/ticky_tacky_dark/img/cool01.jpg" /><meta property="article:section" content="" />
|
<meta property="article:published_time" content="2019-12-08T00:00:00+00:00" />
|
<meta property="article:modified_time" content="2019-12-08T00:00:00+00:00" />
|
|
<meta name="twitter:card" content="summary_large_image"/>
|
<meta name="twitter:image" content="https://kc0bfv.github.io/ticky_tacky_dark/img/cool01.jpg"/>
|
|
<meta name="twitter:title" content="Emoji Support"/>
|
<meta name="twitter:description" content="Guide to emoji usage in Hugo"/>
|
|
|
<meta name="robots" content="index,follow">
|
<meta name="referrer" content="origin-when-cross-origin">
|
<meta name="theme-color" content="black">
|
|
|
|
|
|
<meta name="generator" content="Hugo 0.105.0">
|
|
<link rel="stylesheet" href="/ticky_tacky_dark/css/custom.min.434d878244725c63e8bb3920d68a315d2aa4234915a33e045fe01ad3c2838617.css" integrity="sha256-Q02HgkRyXGPouzkg1ooxXSqkI0kVoz4EX+Aa08KDhhc="/>
|
|
<noscript>
|
<style>
|
|
#headerimg {
|
background-image: url(https://kc0bfv.github.io/ticky_tacky_dark/img/header01.jpg);
|
background-size: cover;
|
}
|
|
|
#sideimage {
|
background-image: url(https://kc0bfv.github.io/ticky_tacky_dark/img/cool01.jpg);
|
background-size: cover;
|
}
|
|
</style>
|
</noscript>
|
|
<script>
|
function randomImg(dest_elem, images) {
|
const img_ind = Math.ceil(Math.random() * images.length) - 1;
|
const sel_url = images[img_ind]
|
const img = new Image();
|
img.onload = function() {
|
function set_img() {
|
const element = document.getElementById(dest_elem);
|
element.src = sel_url;
|
}
|
if( document.readyState != "loading" ) { set_img() }
|
else { window.addEventListener("load", set_img); }
|
}
|
img.src = sel_url;
|
}
|
|
randomImg(
|
dest_elem = "headerimg",
|
images = ["https://kc0bfv.github.io/ticky_tacky_dark/img/header01.jpg","https://kc0bfv.github.io/ticky_tacky_dark/img/header02.jpg"]
|
);
|
|
|
randomImg(
|
dest_elem = "sideimage",
|
images = ["https://kc0bfv.github.io/ticky_tacky_dark/img/cool01.jpg"]
|
);
|
|
</script>
|
</head>
|
<body>
|
<div id="full_body">
|
<header id="header" class="top-section"><img id="headerimg" class="veryrounded" src="/ticky_tacky_dark/img/header_template.png" alt="">
|
<div id="header-text">tickytackydark</div></header>
|
<div id="content" class="top-section">
|
<div class="container-fluid">
|
<div class="row">
|
<div class="col col-12 col-sm-8 col-lg-9">
|
<main class="row">
|
<div class="col-12 col-sm-5">
|
|
<img id="sideimage" class="morerounded" src="/ticky_tacky_dark/img/side_image_template.png" alt="Cool Page Image">
|
|
</div>
|
<div class="col-12 col-sm-7">
|
<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>π π π</p>
|
<p>π π π</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" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-html" data-lang="html"><span style="display:flex;"><span>.emoji {
|
</span></span><span style="display:flex;"><span>font-family: Apple Color Emoji,Segoe UI Emoji,NotoColorEmoji,Segoe UI Symbol,Android Emoji,EmojiSymbols;
|
</span></span><span style="display:flex;"><span>}</span></span></code></pre></div>
|
|
<details>
|
<summary>This demonstrates the dropdown shortcode. Click this.</summary>
|
<ul>
|
<li>This stuff drops down because you clicked on the text.</li>
|
<li>Markdown is supported in here.</li>
|
</ul>
|
<pre tabindex="0"><code># Code sections can go in here too
|
</code></pre>
|
</details>
|
</div>
|
|
</main>
|
</div>
|
<nav class="col col-8 offset-2 col-sm-4 offset-sm-0 col-lg-3"><div class="box morerounded">
|
<ul class="navbar">
|
<li><a href="https://kc0bfv.github.io/ticky_tacky_dark/">Main</a></li>
|
<li><a href="https://kc0bfv.github.io/ticky_tacky_dark/about/">About</a></li>
|
<li><a href="https://kc0bfv.github.io/ticky_tacky_dark/markdown-syntax/">Markdown Syntax Guide</a></li>
|
<li><a href="https://github.com/kc0bfv/ticky_tacky_dark">Theme Source</a></li>
|
<li>Emoji Support</li>
|
<li><a href="https://kc0bfv.github.io/ticky_tacky_dark/rich-content/">Rich Content</a></li>
|
</ul>
|
</div>
|
</nav>
|
</div>
|
</div>
|
</div>
|
<footer id="footer" class="top-section">Webmaster: <a href="mailto:kc0bfv@gmail.com">kc0bfv@gmail.com</a>
|
</footer></div>
|
</body>
|
|
</html>
|