添加新文章
1 | $ hexo new "My New Post" |
更多信息: Writing
开启服务器
1 | $ hexo server |
默认端口4000,如果打不开可能端口冲突(比如在我的电脑上这个端口被福昕阅读器占用),可手动指定其他端口1
$ hexo server -p 5000
更多信息: Server
生成静态文件
1 | $ hexo generate |
更多信息: Generating
部署网站,更新到远端
1 | $ hexo deploy |
更多信息: Deployment
javascript 代码显示效果1
2
3var log = function() {
console.log.apply(console, arguments)
}
清除缓存文件
1 | $ hexo clean |