<!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">
|
<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">
|
|
<title>Ticky Tacky Dark - Emoji Support</title>
|
|
|
|
|
<meta name="robots" content="index,follow">
|
<meta name="referrer" content="origin-when-cross-origin">
|
|
|
|
|
<meta name="generator" content="Hugo 0.63.1">
|
|
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
|
|
|
<link rel="stylesheet" href="/ticky_tacky_dark/css/myscreen.css" type="text/css" media="screen">
|
<link rel="stylesheet" href="/ticky_tacky_dark/css/myprint.css" type="text/css" media="print">
|
<meta name="theme-color" content="black">
|
|
|
|
<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>
|
</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="">
|
</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>
|
<!-- 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="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>
|
|
<a href="javascript:toggleDisplay('dropstuff');">This demonstrates the dropdown shortcode. Click this.</a>
|
|
<div id="dropstuff" style="display:none">
|
This stuff drops down because you clicked on the text.
|
</div>
|
</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://github.com/kc0bfv/ticky_tacky_dark">Theme Source</a></li>
|
<li><a href="https://kc0bfv.github.io/ticky_tacky_dark/markdown-syntax/">Markdown Syntax Guide</a></li>
|
<li>Emoji Support</li>
|
<li><a href="https://kc0bfv.github.io/ticky_tacky_dark/rich-content/">Rich Content</a></li>
|
<li><a href="https://kc0bfv.github.io/ticky_tacky_dark/math-typesetting/">Math Typesetting</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><script>
|
function toggleDisplay( elementID ) {
|
elem = document.getElementById(elementID);
|
if( elem.style.display == "none" ) {
|
elem.style.display = "block";
|
} else if( elem.style.display == "block" ) {
|
elem.style.display = "none";
|
}
|
}
|
|
function randomHeaderImg() {
|
images = ["https://kc0bfv.github.io/ticky_tacky_dark/img/header01.jpg","https://kc0bfv.github.io/ticky_tacky_dark/img/header02.jpg"];
|
i = Math.ceil(Math.random() * images.length) - 1;
|
document.getElementById("headerimg").src = images[i];
|
}
|
window.onload = randomHeaderImg;
|
|
|
function randomSideAndHeaderImg() {
|
randomHeaderImg();
|
images = ["https://kc0bfv.github.io/ticky_tacky_dark/img/cool01.jpg"];
|
i = Math.ceil(Math.random() * images.length) - 1;
|
document.getElementById("sideimage").src = images[i];
|
}
|
window.onload = randomSideAndHeaderImg;
|
|
</script>
|
</div>
|
</body>
|
</html>
|