Example of a post

Signed-off-by: Valentin Popov <valentineus@gmail.com>
This commit is contained in:
Valentin Popov 2018-04-04 00:33:19 +00:00
parent 623bc09c10
commit 40fa011290

View File

@ -1,137 +1,170 @@
--- ---
layout: post description: "Howdy! This is an example blog post that shows several types of HTML content supported in this theme."
comments: true title: "Example Content"
title: "Example Content" layout: post
author: "Valentin Popov"
--- ---
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas tincidunt ornare nibh, non elementum augue tempus eget. Pellentesque tempus scelerisque iaculis. Nullam interdum ultricies nibh quis sollicitudin. Donec ornare fermentum facilisis. Ut at sem ac sem imperdiet varius a eget tortor. Nam eu augue eget orci semper maximus in eget augue. Mauris ornare, nisl ut suscipit consectetur, mi quam interdum tellus, at rutrum quam eros ultrices mi. <div class="message">
{{ page.description | smartify | strip_html | normalize_whitespace }}
</div>
# Headers Cum sociis natoque penatibus et magnis <a href="#">dis parturient montes</a>, nascetur ridiculus mus.
{% highlight markdown %} *Aenean eu leo quam.*
# H1 Pellentesque ornare sem lacinia quam venenatis vestibulum.
## H2 Sed posuere consectetur est at lobortis.
### H3 Cras mattis consectetur purus sit amet fermentum.
#### H4
##### H5
###### H6
{% endhighlight %}
# H1 > Curabitur blandit tempus porttitor.
## H2 Nullam quis risus eget urna mollis ornare vel eu leo.
### H3 Nullam id dolor id nibh ultricies vehicula ut id elit.
#### H4
##### H5
###### H6
# Text formatting Etiam porta **sem malesuada magna** mollis euismod.
{% highlight markdown %} Cras mattis consectetur purus sit amet fermentum.
- **Bold** Aenean lacinia bibendum nulla sed consectetur.
- _Italics_
- ~~Strikethrough~~
- <ins>Underline</ins>
- <sup>Superscript</sup>
- <sub>Subscript</sub>
- Abbreviation: <abbr title="HyperText Markup Language">HTML</abbr>
- Citation: <cite>&mdash; Chester How</cite>
{% endhighlight %}
- **Bold** ## Inline HTML elements
- _Italics_
- ~~Strikethrough~~
- <ins>Underline</ins>
- <sup>Superscript</sup>
- <sub>Subscript</sub>
- Abbreviation: <abbr title="HyperText Markup Language">HTML</abbr>
- Citation: <cite>&mdash; Chester How</cite>
# Lists HTML defines a long list of available inline tags, a complete list of which can be found on the
{% highlight markdown %} [Mozilla Developer Network](https://developer.mozilla.org/en-US/docs/Web/HTML/Element).
1. Ordered list item 1
2. Ordered list item 2
3. Ordered list item 3
* Unordered list item 1 - **To bold text**, use `<strong>`.
* Unordered list item 2 - *To italicize text*, use `<em>`.
* Unordered list item 3 - Abbreviations, like <abbr title="HyperText Markup Langage">HTML</abbr> should use `<abbr>`, with an optional `title` attribute for the full phrase.
{% endhighlight %} - Citations, like <cite>&mdash; Mark otto</cite>, should use `<cite>`.
- <del>Deleted</del> text should use `<del>` and <ins>inserted</ins> text should use `<ins>`.
- Superscript <sup>text</sup> uses `<sup>` and subscript <sub>text</sub> uses `<sub>`.
1. Ordered list item 1 Most of these elements are styled by browsers with few modifications on our part.
2. Ordered list item 2
3. Ordered list item 3
* Unordered list item 1 ## Heading
* Unordered list item 2
* Unordered list item 3
# Links Vivamus sagittis lacus vel augue rutrum faucibus dolor auctor.
{% highlight markdown %} Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit.
Check out tale on [GitHub](https://github.com/chesterhow/tale). Morbi leo risus, porta ac consectetur ac, vestibulum at eros.
{% endhighlight %}
Check out tale on [GitHub](https://github.com/chesterhow/tale). ### Code
# Images Cum sociis natoque penatibus et magnis dis `code element` montes, nascetur ridiculus mus.
{% highlight markdown %}
![Placeholder image](https://placehold.it/800x400 "Placeholder image")
![Image with caption](https://placehold.it/700x400 "Image with caption")
_This is an image with a caption_
{% endhighlight %}
![Placeholder image](https://placehold.it/800x400 "Placeholder image")
![Image with caption](https://placehold.it/700x400 "Image with caption")
_This is an image with a caption_
# Code and Syntax Highlighting
Use back-ticks for `inline code`. Multi-line code snippets are supported too through Pygments.
{% highlight js %} {% highlight js %}
// Sample javascript code // Example can be run directly in your JavaScript console
var s = "JavaScript syntax highlighting";
alert(s); // Create a function that takes two arguments and returns the sum of those arguments
var adder = new Function("a", "b", "return a + b");
// Call the function
adder(2, 6);
// > 8
{% endhighlight %} {% endhighlight %}
{% highlight python %} Aenean lacinia bibendum nulla sed consectetur.
# Sample python code Etiam porta sem malesuada magna mollis euismod.
s = "Python syntax highlighting" Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa.
print s
{% endhighlight %}
Adding `linenos` to the Pyments tag enables line numbers. ### Gists via GitHub Pages
{% highlight js linenos %} Vestibulum id ligula porta felis euismod semper.
// Sample javascript code Nullam quis risus eget urna mollis ornare vel eu leo.
var s = "JavaScript syntax highlighting"; Donec sed odio dui.
alert(s);
{% endhighlight %}
# Blockquotes {% gist 5555251 gist.md %}
{% highlight markdown %}
> Curabitur blandit tempus porttitor. Nullam quis risus eget urna mollis ornare vel eu leo. Nullam id dolor id nibh ultricies vehicula ut id elit.
{% endhighlight %} 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.
> Curabitur blandit tempus porttitor. Nullam quis risus eget urna mollis ornare vel eu leo. Nullam id dolor id nibh ultricies vehicula ut id elit. ### Lists
# Horizontal Rule & Line Break Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.
{% highlight markdown %} Aenean lacinia bibendum nulla sed consectetur.
Use `<hr>` for horizontal rules Etiam porta sem malesuada magna mollis euismod.
Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.
<hr> * Praesent commodo cursus magna, vel scelerisque nisl consectetur et.
* Donec id elit non mi porta gravida at eget metus.
* Nulla vitae elit libero, a pharetra augue.
and `<br>` for line breaks. Donec ullamcorper nulla non metus auctor fringilla.
Nulla vitae elit libero, a pharetra augue.
<br> 1. Vestibulum id ligula porta felis euismod semper.
{% endhighlight %} 2. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.
3. Maecenas sed diam eget risus varius blandit sit amet non magna.
Use `<hr>` for horizontal rules Cras mattis consectetur purus sit amet fermentum.
Sed posuere consectetur est at lobortis.
<hr> <dl>
<dt>HyperText Markup Language (HTML)</dt>
<dd>The language used to describe and define the content of a Web page</dd>
and `<br>` for line breaks. <dt>Cascading Style Sheets (CSS)</dt>
<dd>Used to describe the appearance of Web content</dd>
<br> <dt>JavaScript (JS)</dt>
<dd>The programming language used to build advanced Web sites and applications</dd>
</dl>
_The end_ 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.
### Images
Quisque consequat sapien eget quam rhoncus, sit amet laoreet diam tempus.
Aliquam aliquam metus erat, a pulvinar turpis suscipit at.
![placeholder](http://placehold.it/800x400 "Large example image")
![placeholder](http://placehold.it/400x200 "Medium example image")
![placeholder](http://placehold.it/200x200 "Small example image")
### Tables
Aenean lacinia bibendum nulla sed consectetur.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
<table>
<thead>
<tr>
<th>Name</th>
<th>Upvotes</th>
<th>Downvotes</th>
</tr>
</thead>
<tfoot>
<tr>
<td>Totals</td>
<td>21</td>
<td>23</td>
</tr>
</tfoot>
<tbody>
<tr>
<td>Alice</td>
<td>10</td>
<td>11</td>
</tr>
<tr>
<td>Bob</td>
<td>4</td>
<td>3</td>
</tr>
<tr>
<td>Charlie</td>
<td>7</td>
<td>9</td>
</tr>
</tbody>
</table>
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.
-----
Want to see something else added?
<a href="https://github.com/poole/poole/issues/new">Open an issue.</a>