Write Example Content post
Fix pagination misalignment
This commit is contained in:
parent
b1bda410f7
commit
c1230cc89e
3 changed files with 133 additions and 86 deletions
|
@ -1,85 +0,0 @@
|
|||
---
|
||||
layout: post
|
||||
title: "Example content"
|
||||
---
|
||||
|
||||
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.
|
||||
|
||||
> Curabitur blandit tempus porttitor. Nullam quis risus eget urna mollis ornare vel eu leo. Nullam id dolor id nibh ultricies vehicula ut id elit.
|
||||
|
||||
Etiam porta **sem malesuada magna** mollis euismod. Cras mattis consectetur purus sit amet fermentum. Aenean lacinia bibendum nulla sed consectetur.
|
||||
|
||||
## Inline HTML elements
|
||||
|
||||
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).
|
||||
|
||||
- **To bold text**, use `<strong>`.
|
||||
- *To italicize text*, use `<em>`.
|
||||
- Abbreviations, like <abbr title="HyperText Markup Langage">HTML</abbr> should use `<abbr>`, with an optional `title` attribute for the full phrase.
|
||||
- Citations, like <cite>— 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>`.
|
||||
|
||||
Most of these elements are styled by browsers with few modifications on our part.
|
||||
|
||||
## Heading
|
||||
|
||||
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.
|
||||
|
||||
### Code
|
||||
|
||||
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.
|
||||
|
||||
{% highlight js %}
|
||||
// Example can be run directly in your JavaScript console
|
||||
|
||||
// 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 %}
|
||||
|
||||
You may also optionally show code snippets with line numbers. Add `linenos` to the Pygments tags.
|
||||
|
||||
{% highlight js linenos %}
|
||||
// Example can be run directly in your JavaScript console
|
||||
|
||||
// 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 %}
|
||||
|
||||
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.
|
||||
|
||||
### Lists
|
||||
|
||||
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.
|
||||
|
||||
* 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.
|
||||
|
||||
Donec ullamcorper nulla non metus auctor fringilla. Nulla vitae elit libero, a pharetra augue.
|
||||
|
||||
1. Vestibulum id ligula porta felis euismod semper.
|
||||
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.
|
||||
|
||||
Cras mattis consectetur purus sit amet fermentum. Sed posuere consectetur est at lobortis.
|
||||
|
||||
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")
|
||||
|
||||
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.
|
133
_posts/2017-03-16-example-content.md
Normal file
133
_posts/2017-03-16-example-content.md
Normal file
|
@ -0,0 +1,133 @@
|
|||
---
|
||||
layout: post
|
||||
title: "Example Content"
|
||||
---
|
||||
|
||||
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.
|
||||
|
||||
# Headers
|
||||
{% highlight markdown %}
|
||||
# H1
|
||||
## H2
|
||||
### H3
|
||||
#### H4
|
||||
##### H5
|
||||
###### H6
|
||||
{% endhighlight %}
|
||||
|
||||
# H1
|
||||
## H2
|
||||
### H3
|
||||
#### H4
|
||||
##### H5
|
||||
###### H6
|
||||
|
||||
# Text formatting
|
||||
{% highlight markdown %}
|
||||
- **Bold**
|
||||
- _Italics_
|
||||
- ~~Strikethrough~~
|
||||
- <ins>Underline</ins>
|
||||
- <sup>Superscript</sup>
|
||||
- <sub>Subscript</sub>
|
||||
- Abbreviation: <abbr title="HyperText Markup Language">HTML</abbr>
|
||||
- Citation: <cite>— Chester How</cite>
|
||||
{% endhighlight %}
|
||||
|
||||
- **Bold**
|
||||
- _Italics_
|
||||
- ~~Strikethrough~~
|
||||
- <ins>Underline</ins>
|
||||
- <sup>Superscript</sup>
|
||||
- <sub>Subscript</sub>
|
||||
- Abbreviation: <abbr title="HyperText Markup Language">HTML</abbr>
|
||||
- Citation: <cite>— Chester How</cite>
|
||||
|
||||
# Lists
|
||||
{% highlight markdown %}
|
||||
1. Ordered list item 1
|
||||
2. Ordered list item 2
|
||||
3. Ordered list item 3
|
||||
|
||||
* Unordered list item 1
|
||||
* Unordered list item 2
|
||||
* Unordered list item 3
|
||||
{% endhighlight %}
|
||||
|
||||
1. Ordered list item 1
|
||||
2. Ordered list item 2
|
||||
3. Ordered list item 3
|
||||
|
||||
* Unordered list item 1
|
||||
* Unordered list item 2
|
||||
* Unordered list item 3
|
||||
|
||||
# Links
|
||||
{% highlight markdown %}
|
||||
Check out tale on [GitHub](https://github.com/chesterhow/tale).
|
||||
{% endhighlight %}
|
||||
|
||||
Check out tale on [GitHub](https://github.com/chesterhow/tale).
|
||||
|
||||
# Images
|
||||
{% highlight markdown %}
|
||||
![placeholder](https://placehold.it/800x400 "Large example image")
|
||||
![placeholder](https://placehold.it/400x200 "Medium example image")
|
||||
![placeholder](https://placehold.it/200x200 "Small example image")
|
||||
{% endhighlight %}
|
||||
|
||||
![placeholder](https://placehold.it/800x400 "Large example image")
|
||||
![placeholder](https://placehold.it/400x200 "Medium example image")
|
||||
![placeholder](https://placehold.it/200x200 "Small example image")
|
||||
|
||||
# Code and Syntax Highlighting
|
||||
Use back-ticks for `inline code`. Multi-line code snippets are supported too through Pygments.
|
||||
|
||||
{% highlight js %}
|
||||
// Sample javascript code
|
||||
var s = "JavaScript syntax highlighting";
|
||||
alert(s);
|
||||
{% endhighlight %}
|
||||
|
||||
{% highlight python %}
|
||||
# Sample python code
|
||||
s = "Python syntax highlighting"
|
||||
print s
|
||||
{% endhighlight %}
|
||||
|
||||
Adding `linenos` to the Pyments tag enables line numbers.
|
||||
|
||||
{% highlight js linenos %}
|
||||
// Sample javascript code
|
||||
var s = "JavaScript syntax highlighting";
|
||||
alert(s);
|
||||
{% endhighlight %}
|
||||
|
||||
# Blockquotes
|
||||
{% 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 %}
|
||||
|
||||
> Curabitur blandit tempus porttitor. Nullam quis risus eget urna mollis ornare vel eu leo. Nullam id dolor id nibh ultricies vehicula ut id elit.
|
||||
|
||||
# Horizontal Rule & Line Break
|
||||
{% highlight markdown %}
|
||||
Use `<hr>` for horizontal rules
|
||||
|
||||
<hr>
|
||||
|
||||
and `<br>` for line breaks.
|
||||
|
||||
<br>
|
||||
{% endhighlight %}
|
||||
|
||||
Use `<hr>` for horizontal rules
|
||||
|
||||
<hr>
|
||||
|
||||
and `<br>` for line breaks.
|
||||
|
||||
<br>
|
||||
|
||||
_The end_
|
|
@ -26,7 +26,6 @@
|
|||
.arrow {
|
||||
@include transition(all .3s ease-out);
|
||||
color: $default-color;
|
||||
font-size: 1.3rem;
|
||||
position: absolute;
|
||||
|
||||
&:hover,
|
||||
|
|
Loading…
Reference in a new issue