246 lines
26 KiB
XML
246 lines
26 KiB
XML
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||
<channel>
|
||
<title>Flat theme</title>
|
||
<link>https://leafee98.github.io/hugo-theme-flat/</link>
|
||
<description>Recent content on Flat theme</description>
|
||
<generator>Hugo -- gohugo.io</generator>
|
||
<lastBuildDate>Tue, 20 Sep 2022 09:36:26 +0800</lastBuildDate><atom:link href="https://leafee98.github.io/hugo-theme-flat/index.xml" rel="self" type="application/rss+xml" />
|
||
<item>
|
||
<title>Latex Support</title>
|
||
<link>https://leafee98.github.io/hugo-theme-flat/posts/latex-support/</link>
|
||
<pubDate>Tue, 20 Sep 2022 09:36:26 +0800</pubDate>
|
||
|
||
<guid>https://leafee98.github.io/hugo-theme-flat/posts/latex-support/</guid>
|
||
<description><p>This article contians some test for latex support. Currently the lib used for rendering LaTeX is <a href="https://katex.org/">\(\LaTeX\)</a></p>
|
||
<p>$$
|
||
\pi=\int_{-\infty}^\infty\frac{dx}{1+x^2}
|
||
$$</p>
|
||
<h2 id="the-code-which-render-the-above">The code which render the above <a href="#the-code-which-render-the-above" class="anchor">🔗</a></h2><pre tabindex="0"><code>This article contians some test for latex support. Currently the lib used for rendering LaTeX is [\\(\LaTeX\\)](https://katex.org/)
|
||
|
||
$$
|
||
\pi=\int_{-\infty}^\infty\frac{dx}{1+x^2}
|
||
$$
|
||
|
||
We support \\(\LaTeX\\) now!
|
||
</code></pre></description>
|
||
</item>
|
||
|
||
<item>
|
||
<title>What Is Hugo</title>
|
||
<link>https://leafee98.github.io/hugo-theme-flat/essays/what-is-hugo/</link>
|
||
<pubDate>Mon, 16 May 2022 21:57:50 +0800</pubDate>
|
||
|
||
<guid>https://leafee98.github.io/hugo-theme-flat/essays/what-is-hugo/</guid>
|
||
<description><p>Hugo is a static site generator written in Go. Originally created by Steve Francia in 2013, Hugo has seen a great increase in both features and performance thanks to current lead developer Bjørn Erik Pedersen (since v0.14 in 2015[4]) and other contributors. Hugo is an open source project licensed under the Apache License 2.0.[5]</p>
|
||
<p>Being able to generate most websites within seconds (at &lt; 1 ms per page), Hugo&rsquo;s official website states it is &ldquo;the world’s fastest framework for building websites&rdquo;. In July 2015, Netlify began providing Hugo hosting,[6] and in 2017, Smashing Magazine completed its redesign of their website, migrating from WordPress to a JAMstack solution with Hugo.[7]</p>
|
||
<blockquote>
|
||
<p>Source: <a href="https://en.wikipedia.org/wiki/Hugo_(software)">https://en.wikipedia.org/wiki/Hugo_(software)</a></p>
|
||
<p>License: <a href="https://en.wikipedia.org/wiki/Wikipedia:Text_of_Creative_Commons_Attribution-ShareAlike_3.0_Unported_License">CC-BY-SA 3.0</a></p>
|
||
</blockquote></description>
|
||
</item>
|
||
|
||
<item>
|
||
<title>Markdown Syntax Guide</title>
|
||
<link>https://leafee98.github.io/hugo-theme-flat/posts/markdown-syntax/</link>
|
||
<pubDate>Mon, 11 Mar 2019 00:00:00 +0000</pubDate>
|
||
|
||
<guid>https://leafee98.github.io/hugo-theme-flat/posts/markdown-syntax/</guid>
|
||
<description><p>This article offers a sample of basic Markdown syntax that can be used in Hugo content files, also it shows whether basic HTML elements are decorated with CSS in a Hugo theme.</p>
|
||
<h2 id="headings">Headings <a href="#headings" class="anchor">🔗</a></h2><p>The following HTML <code>&lt;h1&gt;</code>—<code>&lt;h6&gt;</code> elements represent six levels of section headings. <code>&lt;h1&gt;</code> is the highest section level while <code>&lt;h6&gt;</code> is the lowest.</p>
|
||
<h1 id="h1">H1 <a href="#h1" class="anchor">🔗</a></h1><h2 id="h2">H2 <a href="#h2" class="anchor">🔗</a></h2><h3 id="h3">H3 <a href="#h3" class="anchor">🔗</a></h3><h4 id="h4">H4 <a href="#h4" class="anchor">🔗</a></h4><h5 id="h5">H5 <a href="#h5" class="anchor">🔗</a></h5><h6 id="h6">H6 <a href="#h6" class="anchor">🔗</a></h6><h2 id="paragraph">Paragraph <a href="#paragraph" class="anchor">🔗</a></h2><p>Xerum, quo qui aut unt expliquam qui dolut labo. Aque venitatiusda cum, voluptionse latur sitiae dolessi aut parist aut dollo enim qui voluptate ma dolestendit peritin re plis aut quas inctum laceat est volestemque commosa as cus endigna tectur, offic to cor sequas etum rerum idem sintibus eiur? Quianimin porecus evelectur, cum que nis nust voloribus ratem aut omnimi, sitatur? Quiatem. Nam, omnis sum am facea corem alique molestrunt et eos evelece arcillit ut aut eos eos nus, sin conecerem erum fuga. Ri oditatquam, ad quibus unda veliamenimin cusam et facea ipsamus es exerum sitate dolores editium rerore eost, temped molorro ratiae volorro te reribus dolorer sperchicium faceata tiustia prat.</p>
|
||
<p>Itatur? Quiatae cullecum rem ent aut odis in re eossequodi nonsequ idebis ne sapicia is sinveli squiatum, core et que aut hariosam ex eat.</p>
|
||
<h2 id="blockquotes">Blockquotes <a href="#blockquotes" class="anchor">🔗</a></h2><p>The blockquote element represents content that is quoted from another source, optionally with a citation which must be within a <code>footer</code> or <code>cite</code> element, and optionally with in-line changes such as annotations and abbreviations.</p>
|
||
<h4 id="blockquote-without-attribution">Blockquote without attribution <a href="#blockquote-without-attribution" class="anchor">🔗</a></h4><blockquote>
|
||
<p>Tiam, ad mint andaepu dandae nostion secatur sequo quae.
|
||
<strong>Note</strong> that you can use <em>Markdown syntax</em> within a blockquote.</p>
|
||
</blockquote>
|
||
<h4 id="blockquote-with-attribution">Blockquote with attribution <a href="#blockquote-with-attribution" class="anchor">🔗</a></h4><blockquote>
|
||
<p>Don&rsquo;t communicate by sharing memory, share memory by communicating.<!-- raw HTML omitted -->
|
||
— <!-- raw HTML omitted -->Rob Pike<sup id="fnref:1"><a href="#fn:1" class="footnote-ref" role="doc-noteref">1</a></sup><!-- raw HTML omitted --></p>
|
||
</blockquote>
|
||
<h2 id="tables">Tables <a href="#tables" class="anchor">🔗</a></h2><p>Tables aren&rsquo;t part of the core Markdown spec, but Hugo supports supports them out-of-the-box.</p>
|
||
<table>
|
||
<thead>
|
||
<tr>
|
||
<th>Name</th>
|
||
<th>Age</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Bob</td>
|
||
<td>27</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Alice</td>
|
||
<td>23</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
<h4 id="inline-markdown-within-tables">Inline Markdown within tables <a href="#inline-markdown-within-tables" class="anchor">🔗</a></h4><table>
|
||
<thead>
|
||
<tr>
|
||
<th>Italics</th>
|
||
<th>Bold</th>
|
||
<th>Code</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td><em>italics</em></td>
|
||
<td><strong>bold</strong></td>
|
||
<td><code>code</code></td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
<h2 id="code-blocks">Code Blocks <a href="#code-blocks" class="anchor">🔗</a></h2><h4 id="code-block-with-backticks">Code block with backticks <a href="#code-block-with-backticks" class="anchor">🔗</a></h4><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-html" data-lang="html"><span class="line"><span class="cl"><span class="cp">&lt;!doctype html&gt;</span>
|
||
</span></span><span class="line"><span class="cl"><span class="p">&lt;</span><span class="nt">html</span> <span class="na">lang</span><span class="o">=</span><span class="s">&#34;en&#34;</span><span class="p">&gt;</span>
|
||
</span></span><span class="line"><span class="cl"><span class="p">&lt;</span><span class="nt">head</span><span class="p">&gt;</span>
|
||
</span></span><span class="line"><span class="cl"> <span class="p">&lt;</span><span class="nt">meta</span> <span class="na">charset</span><span class="o">=</span><span class="s">&#34;utf-8&#34;</span><span class="p">&gt;</span>
|
||
</span></span><span class="line"><span class="cl"> <span class="p">&lt;</span><span class="nt">title</span><span class="p">&gt;</span>Example HTML5 Document<span class="p">&lt;/</span><span class="nt">title</span><span class="p">&gt;</span>
|
||
</span></span><span class="line"><span class="cl"><span class="p">&lt;/</span><span class="nt">head</span><span class="p">&gt;</span>
|
||
</span></span><span class="line"><span class="cl"><span class="p">&lt;</span><span class="nt">body</span><span class="p">&gt;</span>
|
||
</span></span><span class="line"><span class="cl"> <span class="p">&lt;</span><span class="nt">p</span><span class="p">&gt;</span>Test<span class="p">&lt;/</span><span class="nt">p</span><span class="p">&gt;</span>
|
||
</span></span><span class="line"><span class="cl"><span class="p">&lt;/</span><span class="nt">body</span><span class="p">&gt;</span>
|
||
</span></span><span class="line"><span class="cl"><span class="p">&lt;/</span><span class="nt">html</span><span class="p">&gt;</span>
|
||
</span></span></code></pre></div><h4 id="code-block-indented-with-four-spaces">Code block indented with four spaces <a href="#code-block-indented-with-four-spaces" class="anchor">🔗</a></h4><pre><code>&lt;!doctype html&gt;
|
||
&lt;html lang=&quot;en&quot;&gt;
|
||
&lt;head&gt;
|
||
&lt;meta charset=&quot;utf-8&quot;&gt;
|
||
&lt;title&gt;Example HTML5 Document&lt;/title&gt;
|
||
&lt;/head&gt;
|
||
&lt;body&gt;
|
||
&lt;p&gt;Test&lt;/p&gt;
|
||
&lt;/body&gt;
|
||
&lt;/html&gt;
|
||
</code></pre>
|
||
<h4 id="code-block-with-hugos-internal-highlight-shortcode">Code block with Hugo&rsquo;s internal highlight shortcode <a href="#code-block-with-hugos-internal-highlight-shortcode" class="anchor">🔗</a></h4><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-html" data-lang="html"><span class="line"><span class="cl"><span class="cp">&lt;!doctype html&gt;</span>
|
||
</span></span><span class="line"><span class="cl"><span class="p">&lt;</span><span class="nt">html</span> <span class="na">lang</span><span class="o">=</span><span class="s">&#34;en&#34;</span><span class="p">&gt;</span>
|
||
</span></span><span class="line"><span class="cl"><span class="p">&lt;</span><span class="nt">head</span><span class="p">&gt;</span>
|
||
</span></span><span class="line"><span class="cl"> <span class="p">&lt;</span><span class="nt">meta</span> <span class="na">charset</span><span class="o">=</span><span class="s">&#34;utf-8&#34;</span><span class="p">&gt;</span>
|
||
</span></span><span class="line"><span class="cl"> <span class="p">&lt;</span><span class="nt">title</span><span class="p">&gt;</span>Example HTML5 Document<span class="p">&lt;/</span><span class="nt">title</span><span class="p">&gt;</span>
|
||
</span></span><span class="line"><span class="cl"><span class="p">&lt;/</span><span class="nt">head</span><span class="p">&gt;</span>
|
||
</span></span><span class="line"><span class="cl"><span class="p">&lt;</span><span class="nt">body</span><span class="p">&gt;</span>
|
||
</span></span><span class="line"><span class="cl"> <span class="p">&lt;</span><span class="nt">p</span><span class="p">&gt;</span>Test<span class="p">&lt;/</span><span class="nt">p</span><span class="p">&gt;</span>
|
||
</span></span><span class="line"><span class="cl"><span class="p">&lt;/</span><span class="nt">body</span><span class="p">&gt;</span>
|
||
</span></span><span class="line"><span class="cl"><span class="p">&lt;/</span><span class="nt">html</span><span class="p">&gt;</span></span></span></code></pre></div>
|
||
<h2 id="list-types">List Types <a href="#list-types" class="anchor">🔗</a></h2><h4 id="ordered-list">Ordered List <a href="#ordered-list" class="anchor">🔗</a></h4><ol>
|
||
<li>First item</li>
|
||
<li>Second item</li>
|
||
<li>Third item</li>
|
||
</ol>
|
||
<h4 id="unordered-list">Unordered List <a href="#unordered-list" class="anchor">🔗</a></h4><ul>
|
||
<li>List item</li>
|
||
<li>Another item</li>
|
||
<li>And another item</li>
|
||
</ul>
|
||
<h4 id="nested-list">Nested list <a href="#nested-list" class="anchor">🔗</a></h4><ul>
|
||
<li>Fruit
|
||
<ul>
|
||
<li>Apple</li>
|
||
<li>Orange</li>
|
||
<li>Banana</li>
|
||
</ul>
|
||
</li>
|
||
<li>Dairy
|
||
<ul>
|
||
<li>Milk</li>
|
||
<li>Cheese</li>
|
||
</ul>
|
||
</li>
|
||
</ul>
|
||
<h2 id="other-elements--abbr-sub-sup-kbd-mark">Other Elements — abbr, sub, sup, kbd, mark <a href="#other-elements--abbr-sub-sup-kbd-mark" class="anchor">🔗</a></h2><p><!-- raw HTML omitted -->GIF<!-- raw HTML omitted --> is a bitmap image format.</p>
|
||
<p>H<!-- raw HTML omitted -->2<!-- raw HTML omitted -->O</p>
|
||
<p>X<!-- raw HTML omitted -->n<!-- raw HTML omitted --> + Y<!-- raw HTML omitted -->n<!-- raw HTML omitted --> = Z<!-- raw HTML omitted -->n<!-- raw HTML omitted --></p>
|
||
<p>Press <!-- raw HTML omitted --><!-- raw HTML omitted -->CTRL<!-- raw HTML omitted -->+<!-- raw HTML omitted -->ALT<!-- raw HTML omitted -->+<!-- raw HTML omitted -->Delete<!-- raw HTML omitted --><!-- raw HTML omitted --> to end the session.</p>
|
||
<p>Most <!-- raw HTML omitted -->salamanders<!-- raw HTML omitted --> are nocturnal, and hunt for insects, worms, and other small creatures.</p>
|
||
<div class="footnotes" role="doc-endnotes">
|
||
<hr>
|
||
<ol>
|
||
<li id="fn:1">
|
||
<p>The above quote is excerpted from Rob Pike&rsquo;s <a href="https://www.youtube.com/watch?v=PAAkCSZUG1c">talk</a> during Gopherfest, November 18, 2015.&#160;<a href="#fnref:1" class="footnote-backref" role="doc-backlink">&#x21a9;&#xfe0e;</a></p>
|
||
</li>
|
||
</ol>
|
||
</div></description>
|
||
</item>
|
||
|
||
<item>
|
||
<title>Placeholder Text</title>
|
||
<link>https://leafee98.github.io/hugo-theme-flat/posts/placeholder-text/</link>
|
||
<pubDate>Sat, 09 Mar 2019 00:00:00 +0000</pubDate>
|
||
|
||
<guid>https://leafee98.github.io/hugo-theme-flat/posts/placeholder-text/</guid>
|
||
<description><p>Lorem est tota propiore conpellat pectoribus de pectora summo.</p>
|
||
<p>Redit teque digerit hominumque toris verebor lumina non cervice subde tollit usus habet Arctonque, furores quas nec ferunt. Quoque montibus nunc caluere tempus inhospita parcite confusaque translucet patri vestro qui optatis lumine cognoscere flos nubis! Fronde ipsamque patulos Dryopen deorum.</p>
|
||
<ol>
|
||
<li>Exierant elisi ambit vivere dedere</li>
|
||
<li>Duce pollice</li>
|
||
<li>Eris modo</li>
|
||
<li>Spargitque ferrea quos palude</li>
|
||
</ol>
|
||
<p>Rursus nulli murmur; hastile inridet ut ab gravi sententia! Nomine potitus silentia flumen, sustinet placuit petis in dilapsa erat sunt. Atria tractus malis.</p>
|
||
<ol>
|
||
<li>Comas hunc haec pietate fetum procerum dixit</li>
|
||
<li>Post torum vates letum Tiresia</li>
|
||
<li>Flumen querellas</li>
|
||
<li>Arcanaque montibus omnes</li>
|
||
<li>Quidem et</li>
|
||
</ol>
|
||
<h1 id="vagus-elidunt">Vagus elidunt <a href="#vagus-elidunt" class="anchor">🔗</a></h1><p><!-- raw HTML omitted --><!-- raw HTML omitted --><!-- raw HTML omitted --><!-- raw HTML omitted --><!-- raw HTML omitted --><!-- raw HTML omitted --><!-- raw HTML omitted --><!-- raw HTML omitted --><!-- raw HTML omitted --><!-- raw HTML omitted --><!-- raw HTML omitted --><!-- raw HTML omitted --><!-- raw HTML omitted --><!-- raw HTML omitted --></p>
|
||
<p><a href="https://en.wikipedia.org/wiki/Canons_of_page_construction#Van_de_Graaf_canon">The Van de Graaf Canon</a></p>
|
||
<h2 id="mane-refeci-capiebant-unda-mulcebat">Mane refeci capiebant unda mulcebat <a href="#mane-refeci-capiebant-unda-mulcebat" class="anchor">🔗</a></h2><p>Victa caducifer, malo vulnere contra dicere aurato, ludit regale, voca! Retorsit colit est profanae esse virescere furit nec; iaculi matertera et visa est, viribus. Divesque creatis, tecta novat collumque vulnus est, parvas. <strong>Faces illo pepulere</strong> tempus adest. Tendit flamma, ab opes virum sustinet, sidus sequendo urbis.</p>
|
||
<p>Iubar proles corpore raptos vero auctor imperium; sed et huic: manus caeli Lelegas tu lux. Verbis obstitit intus oblectamina fixis linguisque ausus sperare Echionides cornuaque tenent clausit possit. Omnia putatur. Praeteritae refert ausus; ferebant e primus lora nutat, vici quae mea ipse. Et iter nil spectatae vulnus haerentia iuste et exercebat, sui et.</p>
|
||
<p>Eurytus Hector, materna ipsumque ut Politen, nec, nate, ignari, vernum cohaesit sequitur. Vel <strong>mitis temploque</strong> vocatus, inque alis, <em>oculos nomen</em> non silvis corpore coniunx ne displicet illa. Crescunt non unus, vidit visa quantum inmiti flumina mortis facto sic: undique a alios vincula sunt iactata abdita! Suspenderat ego fuit tendit: luna, ante urbem Propoetides <strong>parte</strong>.</p></description>
|
||
</item>
|
||
|
||
<item>
|
||
<title>Math Typesetting</title>
|
||
<link>https://leafee98.github.io/hugo-theme-flat/posts/math-typesetting/</link>
|
||
<pubDate>Fri, 08 Mar 2019 00:00:00 +0000</pubDate>
|
||
|
||
<guid>https://leafee98.github.io/hugo-theme-flat/posts/math-typesetting/</guid>
|
||
<description><p>Mathematical notation in a Hugo project can be enabled by using third party JavaScript libraries.</p>
|
||
<p>In this example we will be using <a href="https://katex.org/">KaTeX</a></p>
|
||
<ul>
|
||
<li>Create a partial under <code>/layouts/partials/math.html</code></li>
|
||
<li>Within this partial reference the <a href="https://katex.org/docs/autorender.html">Auto-render Extension</a> or host these scripts locally.</li>
|
||
<li>Include the partial in your templates like so:</li>
|
||
</ul>
|
||
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="o">{{</span> <span class="k">if</span> or .Params.math .Site.Params.math <span class="o">}}</span>
|
||
</span></span><span class="line"><span class="cl"><span class="o">{{</span> partial <span class="s2">&#34;math.html&#34;</span> . <span class="o">}}</span>
|
||
</span></span><span class="line"><span class="cl"><span class="o">{{</span> end <span class="o">}}</span>
|
||
</span></span></code></pre></div><ul>
|
||
<li>To enable KaTex globally set the parameter <code>math</code> to <code>true</code> in a project&rsquo;s configuration</li>
|
||
<li>To enable KaTex on a per page basis include the parameter <code>math: true</code> in content files</li>
|
||
</ul>
|
||
<p><strong>Note:</strong> Use the online reference of <a href="https://katex.org/docs/supported.html">Supported TeX Functions</a></p>
|
||
|
||
<h3 id="examples">Examples <a href="#examples" class="anchor">🔗</a></h3>
|
||
<p>Block math:
|
||
$$
|
||
\varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } }
|
||
$$</p></description>
|
||
</item>
|
||
|
||
<item>
|
||
<title>Emoji Support</title>
|
||
<link>https://leafee98.github.io/hugo-theme-flat/posts/emoji-support/</link>
|
||
<pubDate>Tue, 05 Mar 2019 00:00:00 +0000</pubDate>
|
||
|
||
<guid>https://leafee98.github.io/hugo-theme-flat/posts/emoji-support/</guid>
|
||
<description><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></description>
|
||
</item>
|
||
|
||
</channel>
|
||
</rss>
|