Hexo 用法备忘录

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 Test

Centered quotes

1
2
3
{% centerquote %}
content
{% endcenterquote %}

content

1
2
{% post_path filename %}
{% post_link filename [title] [escape] %}
使用 echarts 绘制 2020 疫情折线图

Admonition

1
2
3
4
5
6
7
8
9
10
11
12
13
{% note info %}
#### title
content
{% endnote %}

{% note warning title %}
content
{% endnote %}

{% note success %}
#### Success Header
**Welcome** to [Hexo!](https://hexo.io)
{% endnote %}

title

content

title

content

Success Header

Welcome to Hexo!

Content Tabs

1
2
3
4
5
{% tabs Unique name, [index] %}
<!-- tab [Tab caption] [@icon] -->
Any content (support inline tags too).
<!-- endtab -->
{% endtabs %}

first

second

This is Tab 3.