Hello Hexo!

hexo 使用…

Quick Start

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.

全局安裝 Hexo

1
$ cnpm install hexo -g

Run server

1
2
$ hexo server //在本地服务器上测试,端口4000
//还可开启调试模式(即加上 --debug)

More info: Server

Generate static files

1
$ hexo generate //刷新hexo的资源

More info: Generating

Deploy to remote sites

1
$ hexo deploy //同步到github

More info: Deployment

主题配置

1
2
$ git clone https://github.com/iissnan/hexo-theme-next themes/next
//下载一个next主题的例子

More info: Themes

写文章

1
2
$ hexo new '文章名' //在source/_posts路径下创建的文章
//图片资源放在hexo/resources下用markdown相对路径的方式引入

More info: Writing