Hexo 指令

Hexo 基本指令

啟動Hexo

1
sudo hexo s

會顯示

1
2
3
INFO  Validating config
INFO Start processing
INFO Hexo is running at http://localhost:4000 . Press Ctrl+C to stop.

現在blog在 http://localhost:4000 接著輸入

1
sudo hexo n '標題名稱'
會產生 標題名稱.md檔,檔案在/source/_posts/裡,然後回到一開始的位置

1
2
sudo hexo clean
sudo hexo g

就完成了

輸入

1
npm i hexo@6.2.0
hexo升級到6.2.0版