remove extra line
[blog] / _posts / 2014-01-01-example-content.md
index 08642144d0f610cbef6ed76436a20e8496863d39..2792782dd8fd93844011fa1f07d1205ded6e4fcb 100644 (file)
@@ -3,9 +3,10 @@ layout: post
 title: Example content\r
 ---\r
 \r
-This blog post shows a few different types of content that's supported and styled with Hyde. Basic typography, images, and code are all supported.\r
 \r
------\r
+<div class="message">\r
+  Howdy! This is an example blog post that shows several types of HTML content supported in this theme.\r
+</div>\r
 \r
 Cum sociis natoque penatibus et magnis <a href="#">dis parturient montes</a>, nascetur ridiculus mus. *Aenean eu leo quam.* Pellentesque ornare sem lacinia quam venenatis vestibulum. Sed posuere consectetur est at lobortis. Cras mattis consectetur purus sit amet fermentum.\r
 \r
@@ -13,13 +14,42 @@ Cum sociis natoque penatibus et magnis <a href="#">dis parturient montes</a>, na
 \r
 Etiam porta **sem malesuada magna** mollis euismod. Cras mattis consectetur purus sit amet fermentum. Aenean lacinia bibendum nulla sed consectetur.\r
 \r
+## Inline HTML elements\r
+\r
+HTML defines a long list of available inline tags, a complete list of which can be found on the [Mozilla Developer Network](https://developer.mozilla.org/en-US/docs/Web/HTML/Element).\r
+\r
+- **To bold text**, use `<strong>`.\r
+- *To italicize text*, use `<em>`.\r
+- Abbreviations, like <abbr title="HyperText Markup Langage">HTML</abbr> should use `<abbr>`, with an optional `title` attribute for the full phrase.\r
+- Citations, like <cite>&mdash; Mark otto</cite>, should use `<cite>`.\r
+- <del>Deleted</del> text should use `<del>` and <ins>inserted</ins> text should use `<ins>`.\r
+- Superscript <sup>text</sup> uses `<sup>` and subscript <sub>text</sub> uses `<sub>`.\r
+\r
+Most of these elements are styled by browsers with few modifications on our part.\r
+\r
+## Footnotes\r
+\r
+Footnotes are supported as part of the Markdown syntax. Here's one in action. Clicking this number[^fn-sample_footnote] will lead you to a footnote. The syntax looks like:\r
+\r
+{% highlight text %}\r
+Clicking this number[^fn-sample_footnote]\r
+{% endhighlight %}\r
+\r
+Each footnote needs the `^fn-` prefix and a unique ID to be referenced for the footnoted content. The syntax for that list looks something like this:\r
+\r
+{% highlight text %}\r
+[^fn-sample_footnote]: Handy! Now click the return link to go back.\r
+{% endhighlight %}\r
+\r
+You can place the footnoted content wherever you like. Markdown parsers should properly place it at the bottom of the post.\r
+\r
 ## Heading\r
 \r
 Vivamus sagittis lacus vel augue rutrum faucibus dolor auctor. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Morbi leo risus, porta ac consectetur ac, vestibulum at eros.\r
 \r
-### Sub-heading\r
+### Code\r
 \r
-Cum sociis natoque penatibus et magnis dis `code element` montes, nascetur ridiculus mus.\r
+Inline code is available with the `<code>` element. Snippets of multiple lines of code are supported through Pygments. Longer lines will automatically scroll horizontally when needed.\r
 \r
 {% highlight js %}\r
 // Example can be run directly in your JavaScript console\r
@@ -32,9 +62,30 @@ adder(2, 6);
 // > 8\r
 {% endhighlight %}\r
 \r
+You may also optionally show code snippets with line numbers. Add `linenos` to the Pygments tags.\r
+\r
+{% highlight js linenos %}\r
+// Example can be run directly in your JavaScript console\r
+\r
+// Create a function that takes two arguments and returns the sum of those arguments\r
+var adder = new Function("a", "b", "return a + b");\r
+\r
+// Call the function\r
+adder(2, 6);\r
+// > 8\r
+{% endhighlight %}\r
+\r
 Aenean lacinia bibendum nulla sed consectetur. Etiam porta sem malesuada magna mollis euismod. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa.\r
 \r
-### Sub-heading\r
+### Gists via GitHub Pages\r
+\r
+Vestibulum id ligula porta felis euismod semper. Nullam quis risus eget urna mollis ornare vel eu leo. Donec sed odio dui.\r
+\r
+{% gist 13f94b734a4ddb132735 gist.md %}\r
+\r
+Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Nullam quis risus eget urna mollis ornare vel eu leo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec sed odio dui. Vestibulum id ligula porta felis euismod semper.\r
+\r
+### Lists\r
 \r
 Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Aenean lacinia bibendum nulla sed consectetur. Etiam porta sem malesuada magna mollis euismod. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.\r
 \r
@@ -50,6 +101,69 @@ Donec ullamcorper nulla non metus auctor fringilla. Nulla vitae elit libero, a p
 \r
 Cras mattis consectetur purus sit amet fermentum. Sed posuere consectetur est at lobortis.\r
 \r
+<dl>\r
+  <dt>HyperText Markup Language (HTML)</dt>\r
+  <dd>The language used to describe and define the content of a Web page</dd>\r
+\r
+  <dt>Cascading Style Sheets (CSS)</dt>\r
+  <dd>Used to describe the appearance of Web content</dd>\r
+\r
+  <dt>JavaScript (JS)</dt>\r
+  <dd>The programming language used to build advanced Web sites and applications</dd>\r
+</dl>\r
+\r
+Integer posuere erat a ante venenatis dapibus posuere velit aliquet. Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Nullam quis risus eget urna mollis ornare vel eu leo.\r
+\r
+### Images\r
+\r
+Quisque consequat sapien eget quam rhoncus, sit amet laoreet diam tempus. Aliquam aliquam metus erat, a pulvinar turpis suscipit at.\r
+\r
+![placeholder](http://placehold.it/800x400 "Large example image")\r
+![placeholder](http://placehold.it/400x200 "Medium example image")\r
+![placeholder](http://placehold.it/200x200 "Small example image")\r
+\r
+### Tables\r
+\r
+Aenean lacinia bibendum nulla sed consectetur. Lorem ipsum dolor sit amet, consectetur adipiscing elit.\r
+\r
+<table>\r
+  <thead>\r
+    <tr>\r
+      <th>Name</th>\r
+      <th>Upvotes</th>\r
+      <th>Downvotes</th>\r
+    </tr>\r
+  </thead>\r
+  <tfoot>\r
+    <tr>\r
+      <td>Totals</td>\r
+      <td>21</td>\r
+      <td>23</td>\r
+    </tr>\r
+  </tfoot>\r
+  <tbody>\r
+    <tr>\r
+      <td>Alice</td>\r
+      <td>10</td>\r
+      <td>11</td>\r
+    </tr>\r
+    <tr>\r
+      <td>Bob</td>\r
+      <td>4</td>\r
+      <td>3</td>\r
+    </tr>\r
+    <tr>\r
+      <td>Charlie</td>\r
+      <td>7</td>\r
+      <td>9</td>\r
+    </tr>\r
+  </tbody>\r
+</table>\r
+\r
+Nullam id dolor id nibh ultricies vehicula ut id elit. Sed posuere consectetur est at lobortis. Nullam quis risus eget urna mollis ornare vel eu leo.\r
+\r
 -----\r
 \r
-Want to see something else added? <a href="https://github.com/mdo/hyde/issues/new">Open an issue.</a>
\ No newline at end of file
+Want to see something else added? <a href="https://github.com/poole/poole/issues/new">Open an issue.</a>\r
+\r
+[^fn-sample_footnote]: Handy! Now click the return link to go back.\r