Here’s my quick and dirty cheat sheet for using the Octopress blogging framework.
Command Line
1
2
3
4
| rake new_post["Post title here"]
rake preview ( http://localhost:4000 )
rake generate
rake deploy
|
Markdown Syntax
Headers
1
2
3
| # This is an <h1> tag
## This is an <h2> tag
###### This is an <h6> tag
|
Emphasis
1
2
3
4
5
6
7
| *This text will be italic*
_This will also be italic_
**This text will be bold**
__This will also be bold__
*You **can** combine them*
|
Unordered Lists
1
2
3
4
| * Item 1
* Item 2
* Item 2a
* Item 2b
|
Ordered Lists
1
2
3
4
5
| 1. Item 1
2. Item 2
3. Item 3
* Item 3a
* Item 3b
|
Images
1
2
| ![GitHub Logo](/images/logo.png)
Format: ![Alt Text](url)
|
Links
1
2
| http://github.com - automatic!
[GitHub](http://github.com)
|
Inline code
1
2
| I think you should use an
`<addr>` element here instead.
|
Reference Octopress Cheat Sheet