欢迎使用 Hexo!这是本站的第一篇文章。更多信息请查阅 官方文档,遇到问题可以在 GitHub Issues 上搜索或提问。
常用命令
新建文章
1 | $ hexo new "文章标题" |
参考:Writing
本地预览
1 | $ hexo server |
启动后在浏览器访问 http://localhost:4000 即可预览。
参考:Server
生成静态文件
1 | $ hexo generate |
简写:hexo g
参考:Generating
部署到远程
1 | $ hexo deploy |
简写:hexo d,部署前通常先执行 hexo g。
参考:Deployment
内容由 AI 生成,仅供参考。本文发布于 码上学习,转载请注明出处。