hexo命令

hexo命令
echo “# whatisjava” >> README.md
git init
git add README.md
git commit -m “first commit”
git remote add origin https://github.com/abcdef4love/whatisjava.git
git push -u origin master

git remote add origin https://github.com/abcdef4love/whatisjava.git
git push -u origin master

hexo n “我的博客” == hexo new “我的博客” #新建文章
hexo p == hexo publish
hexo g == hexo generate#生成
hexo s == hexo server #启动服务预览
hexo d == hexo deploy#部署

hexo new “postName” #新建文章
hexo new page “pageName” #新建页面
hexo generate #生成静态页面至public目录
hexo server #开启预览访问端口(默认端口4000,’ctrl + c’关闭server)
hexo deploy #将.deploy目录部署到GitHub
hexo help # 查看帮助
hexo version #查看Hexo的版本

每次部署的步骤,可按以下三步来进行。

hexo clean
hexo generate
hexo deploy

$ hexo g #生成
$ hexo s #启动本地服务,进行文章预览调试

可以用简化的一条命令

hexo s -g

hexo n == hexo new
hexo g == hexo generate
hexo s == hexo server
hexo d == hexo deploy

文章目录
,