Hello World & Markdown Preview

Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.

Quick Start

Create a new post

1
$ hexo new "My New Post"

More info: Writing

Run server

1
$ hexo server

More info: Server

Generate static files

1
$ hexo generate

More info: Generating

Deploy to remote sites

1
$ hexo deploy

More info: Deployment

Markdown Preview

references: Daring Fireball: Markdown Basics, Cactus theme

Paragraphs, Headers, Blockquotes

Markdown

A First Level Header
====================

A Second Level Header
---------------------

Now is the time for all good men to come to
the aid of their country. This is just a
regular paragraph.

The quick brown fox jumped over the lazy
dog's back.

### Header 3

#### Header 4 

##### Header 5

###### Header 6

> This is a blockquote.
> 
> This is the second paragraph in the blockquote.
>
> ## This is an H2 in a blockquote

Output

A First Level Header

A Second Level Header

Now is the time for all good men to come to
the aid of their country. This is just a
regular paragraph.

The quick brown fox jumped over the lazy
dog’s back.

Header 3

Header 4

Header 5
Header 6

This is a blockquote.

This is the second paragraph in the blockquote.

This is an H2 in a blockquote

Phrase Emphasis

Markdown

Some of these words *are emphasized*.
Some of these words _are emphasized also_.

Use two asterisks for **strong emphasis**.
Or, if you prefer, __use two underscores instead__.

Output

Some of these words are emphasized.
Some of these words are emphasized also.

Use two asterisks for strong emphasis.
Or, if you prefer, use two underscores instead.

Lists

Markdown

*   Candy.
*   Gum.
*   Booze.

+   Candy.
+   Gum.
+   Booze.

-   Candy.
-   Gum.
-   Booze.

Output

  • Candy.
  • Gum.
  • Booze.

Markdown

1.  Red
2.  Green
3.  Blue

Output

  1. Red
  2. Green
  3. Blue

Markdown

*   A list item.

    With multiple paragraphs.

*   Another item in the list.

Output

  • A list item.

    With multiple paragraphs.

  • Another item in the list.

Markdown

This is an [example link](http://example.com/).

Output

This is an example link.

Markdown

This is an [example link](http://example.com/ "With a Title").

Output

This is an example link.

Markdown

I get 10 times more traffic from [Google][1] than from
[Yahoo][2] or [MSN][3].

[1]: http://google.com/        "Google"
[2]: http://search.yahoo.com/  "Yahoo Search"
[3]: http://search.msn.com/    "MSN Search"

Output

I get 10 times more traffic from Google than from
Yahoo or MSN.

Markdown

I start my morning with a cup of coffee and
[The New York Times][NY Times].

[ny times]: http://www.nytimes.com/

Output

I start my morning with a cup of coffee and
The New York Times.

Images

Markdown

Inline (titles are optional):

    ![alt text](/img/avatar.png "Title")

Reference-style:

    ![alt text][id]

    [id]: /img/avatar.png "Title"

Output

alt text

Code

Markdown

I strongly recommend against using any `<blink>` tags.

I wish SmartyPants used named entities like `&mdash;`
instead of decimal-encoded entites like `&#8212;`.

Output

I strongly recommend against using any <blink> tags.

I wish SmartyPants used named entities like &mdash;
instead of decimal-encoded entites like &#8212;.

Markdown

If you want your page to validate under XHTML 1.0 Strict,
you’ve got to put paragraph tags in your blockquotes:

<blockquote>
    <p>For example.</p>
</blockquote>

Output

For example.