|
18 | 18 | Dixi ad aestum.</p><h2 id=header-2>Header 2<a class=td-heading-self-link href=#header-2 aria-label="Heading self-link"></a></h2><blockquote><p>This is a blockquote following a header. Bacon ipsum dolor sit amet t-bone doner shank drumstick, pork belly porchetta chuck sausage brisket ham hock rump pig. Chuck kielbasa leberkas, pork bresaola ham hock filet mignon cow shoulder short ribs biltong.</p></blockquote><h3 id=header-3>Header 3<a class=td-heading-self-link href=#header-3 aria-label="Heading self-link"></a></h3><pre tabindex=0><code>This is a code block following a header. |
19 | 19 | </code></pre><h4 id=header-4>Header 4<a class=td-heading-self-link href=#header-4 aria-label="Heading self-link"></a></h4><ul><li>This is an unordered list following a header.</li><li>This is an unordered list following a header.</li><li>This is an unordered list following a header.</li></ul><h5 id=header-5>Header 5<a class=td-heading-self-link href=#header-5 aria-label="Heading self-link"></a></h5><ol><li>This is an ordered list following a header.</li><li>This is an ordered list following a header.</li><li>This is an ordered list following a header.</li></ol><h6 id=header-6>Header 6<a class=td-heading-self-link href=#header-6 aria-label="Heading self-link"></a></h6><table><thead><tr><th>What</th><th>Follows</th></tr></thead><tbody><tr><td>A table</td><td>A header</td></tr><tr><td>A table</td><td>A header</td></tr><tr><td>A table</td><td>A header</td></tr></tbody></table><hr><p>There’s a horizontal rule above and below this.</p><hr><p>Here is an unordered list:</p><ul><li>Salt-n-Pepa</li><li>Bel Biv DeVoe</li><li>Kid ‘N Play</li></ul><p>And an ordered list:</p><ol><li>Michael Jackson</li><li>Michael Bolton</li><li>Michael Bublé</li></ol><p>And an unordered task list:</p><ul><li><input checked disabled type=checkbox> Create a sample markdown document</li><li><input checked disabled type=checkbox> Add task lists to it</li><li><input disabled type=checkbox> Take a vacation</li></ul><p>And a “mixed” task list:</p><ul><li><input disabled type=checkbox> Steal underpants</li><li>?</li><li><input disabled type=checkbox> Profit!</li></ul><p>And a nested list:</p><ul><li>Jackson 5<ul><li>Michael</li><li>Tito</li><li>Jackie</li><li>Marlon</li><li>Jermaine</li></ul></li><li>TMNT<ul><li>Leonardo</li><li>Michelangelo</li><li>Donatello</li><li>Raphael</li></ul></li></ul><p>Definition lists can be used with Markdown syntax. Definition terms are bold.</p><dl><dt>Name</dt><dd>Godzilla</dd><dt>Born</dt><dd>1952</dd><dt>Birthplace</dt><dd>Japan</dd><dt>Color</dt><dd>Green</dd></dl><hr><p>Tables should have bold headings and alternating shaded rows.</p><table><thead><tr><th>Artist</th><th>Album</th><th>Year</th></tr></thead><tbody><tr><td>Michael Jackson</td><td>Thriller</td><td>1982</td></tr><tr><td>Prince</td><td>Purple Rain</td><td>1984</td></tr><tr><td>Beastie Boys</td><td>License to Ill</td><td>1986</td></tr></tbody></table><p>If a table is too wide, it should scroll horizontally.</p><table><thead><tr><th>Artist</th><th>Album</th><th>Year</th><th>Label</th><th>Awards</th><th>Songs</th></tr></thead><tbody><tr><td>Michael Jackson</td><td>Thriller</td><td>1982</td><td>Epic Records</td><td>Grammy Award for Album of the Year, American Music Award for Favorite Pop/Rock Album, American Music Award for Favorite Soul/R&B Album, Brit Award for Best Selling Album, Grammy Award for Best Engineered Album, Non-Classical</td><td>Wanna Be Startin’ Somethin’, Baby Be Mine, The Girl Is Mine, Thriller, Beat It, Billie Jean, Human Nature, P.Y.T. (Pretty Young Thing), The Lady in My Life</td></tr><tr><td>Prince</td><td>Purple Rain</td><td>1984</td><td>Warner Brothers Records</td><td>Grammy Award for Best Score Soundtrack for Visual Media, American Music Award for Favorite Pop/Rock Album, American Music Award for Favorite Soul/R&B Album, Brit Award for Best Soundtrack/Cast Recording, Grammy Award for Best Rock Performance by a Duo or Group with Vocal</td><td>Let’s Go Crazy, Take Me With U, The Beautiful Ones, Computer Blue, Darling Nikki, When Doves Cry, I Would Die 4 U, Baby I’m a Star, Purple Rain</td></tr><tr><td>Beastie Boys</td><td>License to Ill</td><td>1986</td><td>Mercury Records</td><td>noawardsbutthistablecelliswide</td><td>Rhymin & Stealin, The New Style, She’s Crafty, Posse in Effect, Slow Ride, Girls, (You Gotta) Fight for Your Right, No Sleep Till Brooklyn, Paul Revere, Hold It Now, Hit It, Brass Monkey, Slow and Low, Time to Get Ill</td></tr></tbody></table><hr><p>Code snippets like <code>var foo = "bar";</code> can be shown inline.</p><p>Also, <code>this should vertically align</code> <del><code>with this</code></del> <del>and this</del>.</p><p>Code can also be shown in a block element.</p><pre tabindex=0><code>foo := "bar"; |
20 | 20 | bar := "foo"; |
21 | | -</code></pre><p>Code can also use syntax highlighting.</p><div class=highlight><pre tabindex=0 style=background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-go data-lang=go><span style=display:flex><span><span style=color:#204a87;font-weight:700>func</span><span style=color:#f8f8f8> </span><span style=color:#000>main</span><span style=color:#000;font-weight:700>()</span><span style=color:#f8f8f8> </span><span style=color:#000;font-weight:700>{</span><span style=color:#f8f8f8> |
| 21 | +</code></pre><p>Code can also use syntax highlighting.</p><div class=highlight><pre tabindex=0 style=background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none><code class=language-go data-lang=go><span style=display:flex><span><span style=color:#204a87;font-weight:700>func</span><span style=color:#f8f8f8> </span><span style=color:#000>main</span><span style=color:#000;font-weight:700>()</span><span style=color:#f8f8f8> </span><span style=color:#000;font-weight:700>{</span><span style=color:#f8f8f8> |
22 | 22 | </span></span></span><span style=display:flex><span><span style=color:#f8f8f8> </span><span style=color:#000>input</span><span style=color:#f8f8f8> </span><span style=color:#ce5c00;font-weight:700>:=</span><span style=color:#f8f8f8> </span><span style=color:#4e9a06>`var foo = "bar";`</span><span style=color:#f8f8f8> |
23 | 23 | </span></span></span><span style=display:flex><span><span style=color:#f8f8f8> |
24 | 24 | </span></span></span><span style=display:flex><span><span style=color:#f8f8f8> </span><span style=color:#000>lexer</span><span style=color:#f8f8f8> </span><span style=color:#ce5c00;font-weight:700>:=</span><span style=color:#f8f8f8> </span><span style=color:#000>lexers</span><span style=color:#000;font-weight:700>.</span><span style=color:#000>Get</span><span style=color:#000;font-weight:700>(</span><span style=color:#4e9a06>"javascript"</span><span style=color:#000;font-weight:700>)</span><span style=color:#f8f8f8> |
|
33 | 33 | </span></span></span><span style=display:flex><span><span style=color:#000;font-weight:700>}</span><span style=color:#f8f8f8> |
34 | 34 | </span></span></span></code></pre></div><pre tabindex=0><code>Long, single-line code blocks should not wrap. They should horizontally scroll if they are too long. This line should be long enough to demonstrate this. |
35 | 35 | </code></pre><p>Inline code inside table cells should still be distinguishable.</p><table><thead><tr><th>Language</th><th>Code</th></tr></thead><tbody><tr><td>Javascript</td><td><code>var foo = "bar";</code></td></tr><tr><td>Ruby</td><td><code>foo = "bar"{</code></td></tr></tbody></table><hr><p>Small images should be shown at their actual size.</p><p><img src=https://placekitten.com/g/300/200/ alt></p><p>Large images should always scale down and fit in the content container.</p><p><img src=https://placekitten.com/g/1200/800/ alt></p><h2 id=components>Components<a class=td-heading-self-link href=#components aria-label="Heading self-link"></a></h2><h3 id=alerts>Alerts<a class=td-heading-self-link href=#alerts aria-label="Heading self-link"></a></h3><p><div class="alert alert-primary" role=alert>This is an alert.</div><div class="alert alert-primary" role=alert><div class="h4 alert-heading" role=heading>Note:</div>This is an alert with a title.</div><div class="alert alert-primary" role=alert>This is a successful alert.</div><div class="alert alert-primary" role=alert>This is a warning!</div><div class="alert alert-primary" role=alert><div class="h4 alert-heading" role=heading>Warning!</div>This is a warning with a title!</div></p><h2 id=sizing>Sizing<a class=td-heading-self-link href=#sizing aria-label="Heading self-link"></a></h2><p>Add some sections here to see how the ToC looks like. Bacon ipsum dolor sit amet t-bone doner shank drumstick, pork belly porchetta chuck sausage brisket ham hock rump pig. Chuck kielbasa leberkas, pork bresaola ham hock filet mignon cow shoulder short ribs biltong.</p><h3 id=parameters-available>Parameters available<a class=td-heading-self-link href=#parameters-available aria-label="Heading self-link"></a></h3><p>Bacon ipsum dolor sit amet t-bone doner shank drumstick, pork belly porchetta chuck sausage brisket ham hock rump pig. Chuck kielbasa leberkas, pork bresaola ham hock filet mignon cow shoulder short ribs biltong.</p><h3 id=using-pixels>Using pixels<a class=td-heading-self-link href=#using-pixels aria-label="Heading self-link"></a></h3><p>Bacon ipsum dolor sit amet t-bone doner shank drumstick, pork belly porchetta chuck sausage brisket ham hock rump pig. Chuck kielbasa leberkas, pork bresaola ham hock filet mignon cow shoulder short ribs biltong.</p><h3 id=using-rem>Using rem<a class=td-heading-self-link href=#using-rem aria-label="Heading self-link"></a></h3><p>Bacon ipsum dolor sit amet t-bone doner shank drumstick, pork belly porchetta chuck sausage brisket ham hock rump pig. Chuck kielbasa leberkas, pork bresaola ham hock filet mignon cow shoulder short ribs biltong.</p><h2 id=memory>Memory<a class=td-heading-self-link href=#memory aria-label="Heading self-link"></a></h2><p>Bacon ipsum dolor sit amet t-bone doner shank drumstick, pork belly porchetta chuck sausage brisket ham hock rump pig. Chuck kielbasa leberkas, pork bresaola ham hock filet mignon cow shoulder short ribs biltong.</p><h3 id=ram-to-use>RAM to use<a class=td-heading-self-link href=#ram-to-use aria-label="Heading self-link"></a></h3><p>Bacon ipsum dolor sit amet t-bone doner shank drumstick, pork belly porchetta chuck sausage brisket ham hock rump pig. Chuck kielbasa leberkas, pork bresaola ham hock filet mignon cow shoulder short ribs biltong.</p><h3 id=more-is-better>More is better<a class=td-heading-self-link href=#more-is-better aria-label="Heading self-link"></a></h3><p>Bacon ipsum dolor sit amet t-bone doner shank drumstick, pork belly porchetta chuck sausage brisket ham hock rump pig. Chuck kielbasa leberkas, pork bresaola ham hock filet mignon cow shoulder short ribs biltong.</p><h3 id=used-ram>Used RAM<a class=td-heading-self-link href=#used-ram aria-label="Heading self-link"></a></h3><p>Bacon ipsum dolor sit amet t-bone doner shank drumstick, pork belly porchetta chuck sausage brisket ham hock rump pig. Chuck kielbasa leberkas, pork bresaola ham hock filet mignon cow shoulder short ribs biltong.</p><pre tabindex=0><code>This is the final element on the page and there should be no margin below this. |
36 | | -</code></pre><h2 id=including-images>Including images<a class=td-heading-self-link href=#including-images aria-label="Heading self-link"></a></h2><p>Here’s an image (<code>featured-sunset-get.png</code>) that includes a byline and a caption.</p><figure class="card rounded p-2 td-post-card mb-4 mt-4" style=max-width:610px><img class=card-img-top src=/blog/2020/08/29/%EC%83%98%ED%94%8C-%EB%B8%94%EB%A1%9C%EA%B7%B8%EC%9E%85%EB%8B%88%EB%8B%A4./featured-sunset-get_hu_ee0cc0230b02c472.png width=600 height=300><figcaption class="card-body px-0 pt-2 pb-0"><p class=card-text>Fetch and scale an image in the upcoming Hugo 0.43. |
| 36 | +</code></pre><h2 id=including-images>Including images<a class=td-heading-self-link href=#including-images aria-label="Heading self-link"></a></h2><p>Here’s an image (<code>featured-sunset-get.png</code>) that includes a byline and a caption.</p><figure class="card rounded p-2 td-post-card mb-4 mt-4" style=max-width:610px><img class=card-img-top src=/blog/2020/08/29/%EC%83%98%ED%94%8C-%EB%B8%94%EB%A1%9C%EA%B7%B8%EC%9E%85%EB%8B%88%EB%8B%A4./featured-sunset-get_hu_8029c30c789223a9.png width=600 height=300><figcaption class="card-body px-0 pt-2 pb-0"><p class=card-text>Fetch and scale an image in the upcoming Hugo 0.43. |
37 | 37 | <small class=text-body-secondary><br>Photo: Riona MacNamara / CC-BY-CA</small></p></figcaption></figure><p>The front matter of this post specifies properties to be assigned to all image resources:</p><pre tabindex=0><code>resources: |
38 | 38 | - src: "**.{png,jpg}" |
39 | 39 | title: "Image #:counter" |
40 | 40 | params: |
41 | 41 | byline: "Photo: Riona MacNamara / CC-BY-CA" |
42 | 42 | </code></pre><p>To include the image in a page, specify its details like this:</p><pre tabindex=0><code><figure class="card rounded p-2 td-post-card mb-4 mt-4" style=max-width:610px> |
43 | | -<img class=card-img-top src=/blog/2020/08/29/%EC%83%98%ED%94%8C-%EB%B8%94%EB%A1%9C%EA%B7%B8%EC%9E%85%EB%8B%88%EB%8B%A4./featured-sunset-get_hu_ee0cc0230b02c472.png width=600 height=300> |
| 43 | +<img class=card-img-top src=/blog/2020/08/29/%EC%83%98%ED%94%8C-%EB%B8%94%EB%A1%9C%EA%B7%B8%EC%9E%85%EB%8B%88%EB%8B%A4./featured-sunset-get_hu_8029c30c789223a9.png width=600 height=300> |
44 | 44 | <figcaption class="card-body px-0 pt-2 pb-0"> |
45 | 45 | <p class=card-text> |
46 | 46 |
|
|
0 commit comments