编辑完文章保存后可以使用如下命令,生成本地页面 http://localhost:4000/ ,进行预览
// Git BASH终端hexo cl && hexo s
// 或者
// VSCODE终端hexo cl; hexo s
确认无误后使用以下命令,将本地文章推送至GitHub仓库即可
// Git BASH终端hexo cl && hexo g && hexo d
// 或者
// VSCODE终端hexo cl; hexo g; hexo d
参考资料https://hexo.io/zh-cn/https://www.fomal.cc/posts/e593433d.htmlhttps://docs.anheyu.com/
致谢项目https://github.com/hexojs/hexo
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 StartCreate a new post1$ hexo new "My New Post"
More info: Writing
Run server1$ hexo server
More info: Server
Generate static files1$ hexo generate
More info: Generating
Deploy to remote sites1$ hexo deploy
More info: Deployment