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

Hexo的4个常用命令:

1
2
3
4
$ hexo g  #generate 生成静态文件。
$ hexo s #server 启动服务器。可本地预览。
$ hexo d #deploy 部署网站同步到github。
$ hexo clean #clean 清除缓存文件 (db.json) 和已生成的静态文件 (public)。

详细信息:GeneratingServerDeployment

本地预览的默认本地地址

1
http://localhost:4000/

写文章

1
$ hexo new [layout] <title> # 新建文章

详细信息:Writing

一般修改后重新运行

1
2
$ hexo clean
$ hexo g -d
0%