hugo-theme-flat/posts/emoji-support/index.html
2022-09-04 19:13:42 +08:00

253 lines
7.1 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<title>Emoji Support | Flat theme</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,minimum-scale=1">
<link rel="stylesheet" href="/hugo-theme-flat/lib/icofont/icofont.min.css" />
<link rel="stylesheet" href="/hugo-theme-flat/css/syntax.css" />
<link rel="stylesheet" href="/hugo-theme-flat/css/style.css" />
<link rel="shortcut icon" href="/hugo-theme-flat/images/favicon.ico" type="image/x-icon" />
</head>
<body>
<header class="header-wrapper">
<div class="header">
<a class="site-title" href="https://leafee98.github.io/hugo-theme-flat/">Flat theme</a>
<ul class="menu">
<li class="menu-item">
<a href="/hugo-theme-flat/posts/">Posts</a>
</li>
<li class="menu-item">
<a href="/hugo-theme-flat/essays/">Essays</a>
</li>
<li class="menu-item">
<a>Services↓</a>
<ul class="sub-menu">
<li class="menu-item"><a href="#">Service A</a></li>
<li class="menu-item"><a href="#">Service B</a></li>
</ul>
</li>
<li class="menu-item">
<a href="/hugo-theme-flat/about/">About</a>
</li>
</ul>
</div>
</header>
<main class="main-wrapper">
<div class="main">
<section class="single">
<h1 class="title">Emoji Support</h1>
<div class="tip">
<time datetime="2019-03-05 00:00:00 &#43;0000 UTC">2019/03/05</time>
<span class="split">·</span>
<span> 123 words </span>
<span class="split">·</span>
<span>
1 minutes to read
</span>
</div>
<div class="taxonomies">
<div>
Tags:
<a href="/hugo-theme-flat/tags/emoji">emoji</a>
</div>
</div>
<hr />
<div class="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>
<!-- 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 tabindex="0" class="chroma"><code class="language-html" data-lang="html"><span class="line"><span class="cl">.emoji {
</span></span><span class="line"><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="cl">}</span></span></code></pre></div>
</div>
</section>
</div>
<div class="side">
<div class="side-recent">
<h2 class="side-title">Recent Posts</h2>
<hr />
<ul>
<li>
<a href="/hugo-theme-flat/posts/markdown-syntax/">Markdown Syntax Guide</a>
</li>
<li>
<a href="/hugo-theme-flat/posts/placeholder-text/">Placeholder Text</a>
</li>
<li>
<a href="/hugo-theme-flat/posts/math-typesetting/">Math Typesetting</a>
</li>
<li>
<a href="/hugo-theme-flat/posts/emoji-support/">Emoji Support</a>
</li>
</ul>
</div>
<div class="side-recent">
<h2 class="side-title">Recent Essays</h2>
<hr />
<ul>
<li>
<a href="/hugo-theme-flat/essays/what-is-hugo/">What Is Hugo</a>
</li>
</ul>
</div>
<div class="side-categories">
<h2>Categories</h2>
<hr />
<ul>
<li>
<a href="/hugo-theme-flat/categories/syntax">syntax(1)</a>
</li>
<li>
<a href="/hugo-theme-flat/categories/themes">themes(1)</a>
</li>
</ul>
</div>
<div class="side-tags">
<h2>Tags</h2>
<hr />
<ul>
<li>
<a href="/hugo-theme-flat/tags/css">css (1)</a>
</li>
<li>
<a href="/hugo-theme-flat/tags/emoji">emoji (1)</a>
</li>
<li>
<a href="/hugo-theme-flat/tags/html">html (1)</a>
</li>
<li>
<a href="/hugo-theme-flat/tags/markdown">markdown (2)</a>
</li>
<li>
<a href="/hugo-theme-flat/tags/text">text (1)</a>
</li>
</ul>
</div>
</div>
</main>
<footer class="footer">
<div class="footer-row">
<a class="footer-item" href="https://leafee98.github.io/hugo-theme-flat/posts/index.xml">
Feed of Posts
<i class="icofont-rss"></i>
</a>
<a class="footer-item" href="https://leafee98.github.io/hugo-theme-flat/essays/index.xml">
Feed of Essays
<i class="icofont-rss"></i>
</a>
</div>
<div class="footer-row">
<span class="footer-item">Copyright <a href="https://creativecommons.org/licenses/by/4.0/">CC BY-4.0</a></span>
</div>
<div class="footer-row">
<span class="footer-item">Powered by <a href="https://gohugo.io">Hugo</a></span>
<span class="footer-item">Theme <a href="https://cgit.leafee98.com/hugo-theme-flat.git">hugo-theme-flat</a></span>
</div>
</footer>
</body>
</html>