hacks-guide-minimal-mistake.../_posts/2012-01-03-template-table-of-contents-post.md

103 lines
2.8 KiB
Markdown
Raw Normal View History

2013-05-24 16:25:31 +02:00
---
2016-03-04 18:37:24 +01:00
title: "Template: Post with Table Of Contents"
2016-02-24 22:12:21 +01:00
tags:
- table of contents
2013-05-24 16:25:31 +02:00
---
2016-03-07 15:51:50 +01:00
{% include toc title="Unique Title" icon="file-text" %}
Testing Kramdown auto-generated table of contents with unique title and icon assigned in the include like so:
```liquid
{% raw %}{% include toc title="Unique Title" icon="file-text" %}{% endraw %}
```
2013-05-24 21:06:54 +02:00
2013-05-24 16:25:31 +02:00
## HTML Elements
2013-05-28 17:00:07 +02:00
Below is just about everything you'll need to style in the theme. Check the source code to see the many embedded elements within paragraphs.
2013-05-24 16:25:31 +02:00
# Heading 1
## Heading 2
### Heading 3
#### Heading 4
##### Heading 5
###### Heading 6
2013-05-24 20:19:52 +02:00
### Body text
2013-05-24 16:25:31 +02:00
Lorem ipsum dolor sit amet, test link adipiscing elit. **This is strong**. Nullam dignissim convallis est. Quisque aliquam.
![Smithsonian Image]({{ site.url }}{{ site.baseurl }}/images/3953273590_704e3899d5_m.jpg)
{: .image-pull-right}
2013-05-24 20:19:52 +02:00
2013-05-24 16:25:31 +02:00
*This is emphasized*. Donec faucibus. Nunc iaculis suscipit dui. 53 = 125. Water is H2O. Nam sit amet sem. Aliquam libero nisi, imperdiet at, tincidunt nec, gravida vehicula, nisl. The New York Times (Thats a citation). Underline.Maecenas ornare tortor. Donec sed tellus eget sapien fringilla nonummy. Mauris a ante. Suspendisse quam sem, consequat at, commodo vitae, feugiat in, nunc. Morbi imperdiet augue quis tellus.
HTML and CSS are our tools. Mauris a ante. Suspendisse quam sem, consequat at, commodo vitae, feugiat in, nunc. Morbi imperdiet augue quis tellus. Praesent mattis, massa quis luctus fermentum, turpis mi volutpat justo, eu volutpat enim diam eget metus.
### Blockquotes
> Lorem ipsum dolor sit amet, test link adipiscing elit. Nullam dignissim convallis est. Quisque aliquam.
## List Types
### Ordered Lists
1. Item one
1. sub item one
2. sub item two
3. sub item three
2. Item two
2013-05-24 20:19:52 +02:00
### Unordered Lists
* Item one
* Item two
* Item three
2013-05-24 16:25:31 +02:00
## Tables
| Header1 | Header2 | Header3 |
|:--------|:-------:|--------:|
| cell1 | cell2 | cell3 |
| cell4 | cell5 | cell6 |
|----
| cell1 | cell2 | cell3 |
| cell4 | cell5 | cell6 |
|=====
| Foot1 | Foot2 | Foot3
{: rules="groups"}
## Code Snippets
2013-05-28 15:00:43 +02:00
{% highlight css %}
2013-05-24 16:25:31 +02:00
#container {
float: left;
margin: 0 -240px 0 0;
width: 100%;
}
2013-05-28 15:00:43 +02:00
{% endhighlight %}
2013-05-24 20:19:52 +02:00
## Buttons
Make any link standout more when applying the `.btn` class.
{% highlight html %}
<a href="#" class="btn btn-success">Success Button</a>
{% endhighlight %}
2014-03-25 17:35:02 +01:00
<div markdown="0"><a href="#" class="btn">Primary Button</a></div>
<div markdown="0"><a href="#" class="btn btn-success">Success Button</a></div>
<div markdown="0"><a href="#" class="btn btn-warning">Warning Button</a></div>
<div markdown="0"><a href="#" class="btn btn-danger">Danger Button</a></div>
<div markdown="0"><a href="#" class="btn btn-info">Info Button</a></div>
2014-03-25 17:35:02 +01:00
## Notices
**Watch out!** You can also add notices by appending `{: .notice}` to a paragraph.
{: .notice}