Hello World

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

Tag Plugins Guide

1. Block Quote

Perfect for adding quotes to your post, with optional author, source and title information.
Alias: quote

1
2
3
{% blockquote [author[, source]] [link] [source_link_title] %}
content
{% endblockquote %}

Examples

No arguments. Plain blockquote.

1
2
3
{% blockquote %}
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque hendrerit lacus ut purus iaculis feugiat. Sed nec tempor elit, quis aliquam neque. Curabitur sed diam eget dolor fermentum semper at eu lorem.
{% endblockquote %}

Quote from a book

1
2
3
{% blockquote David Levithan, Wide Awake %}
Do not just seek happiness for yourself. Seek happiness for all. Through kindness. Through mercy.
{% endblockquote %}

2. Code Block

Useful feature for adding code snippets to your post.
Alias: code

1
2
3
{% codeblock [title] [lang:language] [url] [link text] [additional options] %}
code snippet
{% endcodeblock %}

3. Image

Inserts an image with specified size.

1
{% img [class names] /path/to/image [width] [height] '"title text" "alt text"' %}

Inserts a link with target=”_blank” attribute.

1
{% link text url [external] [title] %}

5. YouTube

Inserts a YouTube video.

1
{% youtube video_id [type] [cookie] %}

Examples

Embed a video

1
{% youtube lJIrF4YjHfQ %}

Embed a playlist

1
2
{% youtube PL9hW1uS6HUfscJ9DHkOSoOX45MjXduUxo 'playlist' %}
Enable privacy-enhanced mode

YouTube’s cookie is not used in this mode.

1
2
{% youtube lJIrF4YjHfQ false %}
{% youtube PL9hW1uS6HUfscJ9DHkOSoOX45MjXduUxo 'playlist' false %}

6. Include Posts

Include links to other posts.

1
2
{% post_path filename %}
{% post_link filename [title] [escape] %}
You need to set client_id and slot_id to show this AD unit. Please set it in _config.yml.