这些命令你都用过吗?
npm install hexo -g #安装
npm update hexo -g #升级
hexo init #初始化
hexo new "postName" #新建文章
hexo new page "pageName" #新建页面
hexo generate #生成静态页面至public目录
hexo server #开启预览访问端口(默认端口4000,'ctrl + c'关闭server)
hexo deploy #将.deploy目录部署到GitHub
hexo n #写文章
hexo g #生成
hexo d #部署 #可与hexo g合并为hexo d -g
一般操作,在博客下调出cmd命令窗口:
hexo new "xx"
在E:MyBlogsource_posts下,找到xx.md
用markdown抒写,完成后,先开启本地测试hexo s
没有问题后,hexo d -g
最后
以上就是欢呼啤酒最近收集整理的关于hexo github搭建博客常用的命令的全部内容,更多相关hexo内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复