359 lines
11 KiB
HTML
359 lines
11 KiB
HTML
<!DOCTYPE html>
|
||
<html><head>
|
||
<meta charset="UTF-8">
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
<meta name="description" content="your description">
|
||
<meta name="Author" content="your name">
|
||
<meta name="keywords" content="hugo blog">
|
||
<link rel="stylesheet" href=https://example.com/css/syntax.css>
|
||
<link rel="stylesheet" href=https://example.com/css/style.css>
|
||
<script src="https://kit.fontawesome.com/1b7478c139.js" crossorigin="anonymous"></script>
|
||
<title>title</title>
|
||
</head><body><aside id="sidenav">
|
||
<header>
|
||
|
||
<a href="https://example.com"><img src="/avatar.png" alt="avatar"></a>
|
||
|
||
|
||
<a id="branding" href="https://example.com">
|
||
|
||
title
|
||
|
||
</a>
|
||
</header>
|
||
|
||
<nav>
|
||
|
||
|
||
<a href="/"
|
||
|
||
>
|
||
<i class="fas fa-home fa-sm"></i>
|
||
<span>home</span>
|
||
</a>
|
||
|
||
|
||
<a href="/blog/"
|
||
|
||
>
|
||
<i class="fas fa-keyboard fa-ms"></i>
|
||
<span>blog</span>
|
||
</a>
|
||
|
||
|
||
<a href="/tags"
|
||
|
||
>
|
||
<i class="fas fa-tags fa-ms"></i>
|
||
<span>tags</span>
|
||
</a>
|
||
|
||
|
||
<a href="https://github.com/yourgithubusername23434"
|
||
|
||
target="_blanck"
|
||
|
||
>
|
||
<i class="fab fa-github fa-ms"></i>
|
||
<span>github</span>
|
||
</a>
|
||
|
||
|
||
<a href="/index.xml"
|
||
|
||
>
|
||
<i class="fas fa-rss fa-ms"></i>
|
||
<span>RSS</span>
|
||
</a>
|
||
|
||
|
||
<a href="/contact"
|
||
|
||
>
|
||
<i class="far fa-envelope"></i>
|
||
<span>contact</span>
|
||
</a>
|
||
|
||
</aside>
|
||
<main id="main">
|
||
<a href="javascript:void(0)" id="closebtn" onclick="navToggle()"><i class="fas fa-bars fa-lg"></i></a>
|
||
<div class="content">
|
||
|
||
<h1 id="title">Markdown Syntax Guide</h1>
|
||
|
||
|
||
<nav id="TableOfContents">
|
||
<ul>
|
||
<li>
|
||
<ul>
|
||
<li><a href="#headings">Headings</a></li>
|
||
</ul></li>
|
||
<li><a href="#h1">H1</a>
|
||
<ul>
|
||
<li><a href="#h2">H2</a>
|
||
<ul>
|
||
<li><a href="#h3">H3</a>
|
||
<ul>
|
||
<li><a href="#h4">H4</a>
|
||
<ul>
|
||
<li><a href="#h5">H5</a>
|
||
<ul>
|
||
<li><a href="#h6">H6</a></li>
|
||
</ul></li>
|
||
</ul></li>
|
||
</ul></li>
|
||
</ul></li>
|
||
<li><a href="#paragraph">Paragraph</a></li>
|
||
<li><a href="#blockquotes">Blockquotes</a>
|
||
<ul>
|
||
<li>
|
||
<ul>
|
||
<li><a href="#blockquote-without-attribution">Blockquote without attribution</a></li>
|
||
<li><a href="#blockquote-with-attribution">Blockquote with attribution</a></li>
|
||
</ul></li>
|
||
</ul></li>
|
||
<li><a href="#tables">Tables</a>
|
||
<ul>
|
||
<li>
|
||
<ul>
|
||
<li><a href="#inline-markdown-within-tables">Inline Markdown within tables</a></li>
|
||
</ul></li>
|
||
</ul></li>
|
||
<li><a href="#code-blocks">Code Blocks</a>
|
||
<ul>
|
||
<li>
|
||
<ul>
|
||
<li><a href="#code-block-with-backticks">Code block with backticks</a></li>
|
||
<li><a href="#code-block-indented-with-four-spaces">Code block indented with four spaces</a></li>
|
||
<li><a href="#code-block-with-hugo-s-internal-highlight-shortcode">Code block with Hugo’s internal highlight shortcode</a></li>
|
||
</ul></li>
|
||
</ul></li>
|
||
<li><a href="#list-types">List Types</a>
|
||
<ul>
|
||
<li>
|
||
<ul>
|
||
<li><a href="#ordered-list">Ordered List</a></li>
|
||
<li><a href="#unordered-list">Unordered List</a></li>
|
||
<li><a href="#nested-list">Nested list</a></li>
|
||
</ul></li>
|
||
</ul></li>
|
||
<li><a href="#other-elements-abbr-sub-sup-kbd-mark">Other Elements — abbr, sub, sup, kbd, mark</a></li>
|
||
</ul></li>
|
||
</ul>
|
||
</nav>
|
||
<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</h2>
|
||
|
||
<p>The following HTML <code><h1></code>—<code><h6></code> elements represent six levels of section headings. <code><h1></code> is the highest section level while <code><h6></code> is the lowest.</p>
|
||
|
||
<h1 id="h1">H1</h1>
|
||
|
||
<h2 id="h2">H2</h2>
|
||
|
||
<h3 id="h3">H3</h3>
|
||
|
||
<h4 id="h4">H4</h4>
|
||
|
||
<h5 id="h5">H5</h5>
|
||
|
||
<h6 id="h6">H6</h6>
|
||
|
||
<h2 id="paragraph">Paragraph</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</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</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</h4>
|
||
|
||
<blockquote>
|
||
<p>Don’t communicate by sharing memory, share memory by communicating.</p>
|
||
— <cite>Rob Pike<sup class="footnote-ref" id="fnref:1"><a href="#fn:1">1</a></sup></cite></p>
|
||
</blockquote>
|
||
|
||
<h2 id="tables">Tables</h2>
|
||
|
||
<p>Tables aren’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</h4>
|
||
|
||
<table>
|
||
<thead>
|
||
<tr>
|
||
<th>Inline </th>
|
||
<th>Markdown </th>
|
||
<th>In </th>
|
||
<th>Table</th>
|
||
</tr>
|
||
</thead>
|
||
|
||
<tbody>
|
||
<tr>
|
||
<td><em>italics</em></td>
|
||
<td><strong>bold</strong></td>
|
||
<td><del>strikethrough</del> </td>
|
||
<td><code>code</code></td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
|
||
<h2 id="code-blocks">Code Blocks</h2>
|
||
|
||
<h4 id="code-block-with-backticks">Code block with backticks</h4>
|
||
|
||
<pre><code>html
|
||
<!DOCTYPE html>
|
||
<html lang="en">
|
||
<head>
|
||
<meta charset="UTF-8">
|
||
<title>Example HTML5 Document</title>
|
||
</head>
|
||
<body>
|
||
<p>Test</p>
|
||
</body>
|
||
</html>
|
||
</code></pre>
|
||
|
||
<h4 id="code-block-indented-with-four-spaces">Code block indented with four spaces</h4>
|
||
|
||
<pre><code><!DOCTYPE html>
|
||
<html lang="en">
|
||
<head>
|
||
<meta charset="UTF-8">
|
||
<title>Example HTML5 Document</title>
|
||
</head>
|
||
<body>
|
||
<p>Test</p>
|
||
</body>
|
||
</html>
|
||
</code></pre>
|
||
|
||
<h4 id="code-block-with-hugo-s-internal-highlight-shortcode">Code block with Hugo’s internal highlight shortcode</h4>
|
||
|
||
<div class="highlight"><pre class="chroma"><code class="language-html" data-lang="html"><span class="cp"><!DOCTYPE html></span>
|
||
<span class="p"><</span><span class="nt">html</span> <span class="na">lang</span><span class="o">=</span><span class="s">"en"</span><span class="p">></span>
|
||
<span class="p"><</span><span class="nt">head</span><span class="p">></span>
|
||
<span class="p"><</span><span class="nt">meta</span> <span class="na">charset</span><span class="o">=</span><span class="s">"UTF-8"</span><span class="p">></span>
|
||
<span class="p"><</span><span class="nt">title</span><span class="p">></span>Example HTML5 Document<span class="p"></</span><span class="nt">title</span><span class="p">></span>
|
||
<span class="p"></</span><span class="nt">head</span><span class="p">></span>
|
||
<span class="p"><</span><span class="nt">body</span><span class="p">></span>
|
||
<span class="p"><</span><span class="nt">p</span><span class="p">></span>Test<span class="p"></</span><span class="nt">p</span><span class="p">></span>
|
||
<span class="p"></</span><span class="nt">body</span><span class="p">></span>
|
||
<span class="p"></</span><span class="nt">html</span><span class="p">></span></code></pre></div>
|
||
|
||
<h2 id="list-types">List Types</h2>
|
||
|
||
<h4 id="ordered-list">Ordered List</h4>
|
||
|
||
<ol>
|
||
<li>First item</li>
|
||
<li>Second item</li>
|
||
<li>Third item</li>
|
||
</ol>
|
||
|
||
<h4 id="unordered-list">Unordered List</h4>
|
||
|
||
<ul>
|
||
<li>List item</li>
|
||
<li>Another item</li>
|
||
<li>And another item</li>
|
||
</ul>
|
||
|
||
<h4 id="nested-list">Nested list</h4>
|
||
|
||
<ul>
|
||
<li>Item</li>
|
||
<li>First Sub-item</li>
|
||
<li>Second Sub-item</li>
|
||
</ul>
|
||
|
||
<h2 id="other-elements-abbr-sub-sup-kbd-mark">Other Elements — abbr, sub, sup, kbd, mark</h2>
|
||
|
||
<p><abbr title="Graphics Interchange Format">GIF</abbr> is a bitmap image format.</p>
|
||
|
||
<p>H<sub>2</sub>O</p>
|
||
|
||
<p>X<sup>n</sup> + Y<sup>n</sup> = Z<sup>n</sup></p>
|
||
|
||
<p>Press <kbd><kbd>CTRL</kbd>+<kbd>ALT</kbd>+<kbd>Delete</kbd></kbd> to end the session.</p>
|
||
|
||
<p>Most <mark>salamanders</mark> are nocturnal, and hunt for insects, worms, and other small creatures.</p>
|
||
<div class="footnotes">
|
||
|
||
<hr />
|
||
|
||
<ol>
|
||
<li id="fn:1">The above quote is excerpted from Rob Pike’s <a href="https://www.youtube.com/watch?v=PAAkCSZUG1c">talk</a> during Gopherfest, November 18, 2015.
|
||
<a class="footnote-return" href="#fnref:1"><sup>[return]</sup></a></li>
|
||
</ol>
|
||
</div>
|
||
|
||
<div class="nav-next-prev">
|
||
<div class="nav-prev">
|
||
|
||
<a href="https://example.com/blog/rich-content/"><i class="fas fa-chevron-left"></i></a>
|
||
|
||
</div>
|
||
<a class="nav-top" href="#">top</i></a>
|
||
<div class="nav-next">
|
||
|
||
<a class="grayed-out" href="javascript:void()"><i class="fas fa-chevron-right"></i></a>
|
||
|
||
</div>
|
||
</div>
|
||
|
||
|
||
</div><footer>
|
||
<div class="footer-content">
|
||
<div class="contact-info">
|
||
|
||
<div class="footer-mail">
|
||
<i class="far fa-envelope"></i> <a href="mailto:mail@example.com">mail@example.com</a> </div>
|
||
|
||
|
||
<div class="footer-phone">
|
||
<i class="fas fa-phone"></i> 8888888888
|
||
</div>
|
||
|
||
</div>
|
||
|
||
<p class="copyright meta">Copyright © 2008–2019, Steve Francia and the Hugo Authors; all rights reserved.</p>
|
||
|
||
</div>
|
||
</footer></main>
|
||
</body>
|
||
<script src=https://example.com/js/navbutton.js></script>
|
||
</html>
|