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

Mermaid

installation:

1
npm install hexo-mermaid-diagrams

usage:

1
2
{% mermaid type %}
{% endmermaid %}

e.g.

1
2
3
4
5
6
7
{% mermaid %}
graph TD;
A-->B;
A-->C;
B-->D;
C-->D;
{% endmermaid %}
A
B
C
D

Math

默认render会把latex公式中的_渲染成HTML中的<i>, 需要更换render。

1
2
3
4
5
6
npm install hexo-math --save
cd PATH_TO_YOUR_HEXO_BLOG
hexo math install
# NOW, add plugins: hexo-math into the _config.yml
npm uninstall hexo-renderer-marked --save
npm install hexo-renderer-kramed --save

注意, kramed的inline公式需要改变写法,增加单行代码引用包围, 例如:

1
`$a_t$`
/!-- -->