這些命令你都用過嗎薄货?
npm install hexo -g #安裝
npm update hexo -g #升級
hexo init #初始化
hexo new "postName" #新建文章
hexo new page "pageName" #新建頁面
hexo generate #生成靜態(tài)頁面至public目錄
hexo server #開啟預(yù)覽訪問端口(默認(rèn)端口4000戈毒,'ctrl + c'關(guān)閉server)
hexo deploy #將.deploy目錄部署到GitHub
hexo n #寫文章
hexo g #生成
hexo d #部署 #可與hexo g合并為hexo d -g?
一般操作挣轨,在博客下調(diào)出cmd命令窗口:
hexo new "xx"
在E:\MyBlog\source\_posts下申窘,找到xx.md
用markdown抒寫散吵,完成后,先開啟本地測試hexo s
沒有問題后箱硕,hexo d -g